HtmlClass
in package
Class to simplify rendering standard html tags with indents etc
Tags
Table of Contents
Methods
- tag() : mixed
- base method for formatting a line used by most methods in the class
- td() : mixed
- th() : mixed
- indentToTabs() : mixed
Methods
tag()
base method for formatting a line used by most methods in the class
public
tag(mixed $tag, mixed $indent, mixed $content, mixed $class, mixed $style, mixed $attrs) : mixed
@param $tag string html tag eg 'td'
Parameters
- $tag : mixed
- $indent : mixed
-
int number of tabs to indent @param $content string @param $class string class names to apply to the tag (w/o 'class=') @param $style string style to apply to the tag (w/o 'style=' @param $attrs string additional attributes eg 'onclick="..." @return void
- $content : mixed
- $class : mixed
- $style : mixed
- $attrs : mixed
td()
public
td(mixed $content[, mixed $class = '' ][, mixed $style = '' ][, mixed $attrs = '' ]) : mixed
Parameters
- $content : mixed
- $class : mixed = ''
- $style : mixed = ''
- $attrs : mixed = ''
th()
public
th(mixed $content[, mixed $class = '' ][, mixed $style = '' ][, mixed $attrs = '' ]) : mixed
Parameters
- $content : mixed
- $class : mixed = ''
- $style : mixed = ''
- $attrs : mixed = ''
indentToTabs()
private
indentToTabs(mixed $q) : mixed
Parameters
- $q : mixed