Class to build an HTML table
package |
Framework |
---|---|
subpackage |
View |
__construct(array $attrib = array())
array
Hash array with tag attributes
add(array $attr, string $cont)
array
Cell attributes
string
Cell content
add_header(array $attr, string $cont)
array
Cell attributes
string
Cell content
remove_column(string $class)
string
add_row(array $attr = array())
array
Row attributes
set_row_attribs(array $attr = array(), int $index = null)
array
Row attributes
int
Optional row index (default current row index)
get_row_attribs(int $index = null) : array
int
Row index
array
Row attributes
show() : string
string
The finally composed HTML tag
size() : \The
\The
number of rows
remove_body()
_row_tagname()
_col_tagname()
tag(string $tagname, array $attrib = array(), string $content = null, array $allowed_attrib = null) : string
string
Tag name
array
Tag attributes as key/value pairs
string
Optinal Tag content (creates a container tag)
array
List with allowed attributes, omit to allow all
string
The XHTML tag
doctype($type)
div(mixed $attr = null, string $cont = null) : string
see | \html::tag() |
---|---|
mixed
Hash array with tag attributes or string with class name
string
Div content
string
HTML code
p(mixed $attr = null, string $cont = null) : string
see | \html::tag() |
---|---|
mixed
Hash array with tag attributes or string with class name
string
Paragraph content
string
HTML code
img(mixed $attr = null) : string
see | \html::tag() |
---|---|
mixed
Hash array with tag attributes or string with image source (src)
string
HTML code
a(mixed $attr, string $cont) : string
see | \html::tag() |
---|---|
mixed
Hash array with tag attributes or string with link location (href)
string
Link content
string
HTML code
span(mixed $attr, string $cont) : string
see | \html::tag() |
---|---|
mixed
Hash array with tag attributes or string with class name
string
Tag content
string
HTML code
label(mixed $attr, string $cont) : string
see | \html::tag() |
---|---|
mixed
Hash array with tag attributes or string with 'for' attrib
string
Tag content
string
HTML code
iframe(mixed $attr = null, $cont = null) : string
see | \html::tag() |
---|---|
mixed
Hash array with tag attributes or string with frame source (src)
string
HTML code
script(mixed $attr, string $cont = null) : string
see | \html::tag() |
---|---|
mixed
Hash array with tag attributes or string with script source (src)
string
Javascript code to be placed as tag content
string
HTML code
br($attrib = array()) : string
attrib_string(array $attrib = array(), array $allowed = null) : string
array
Associative arry with tag attributes
array
List of allowed attributes
string
Valid attribute string
parse_attrib_string($str) : array
array
Key-value pairs of parsed attributes
quote(string $str) : string
string
Input string
string
The quoted string
tagname :
allowed :
header :
rows :
rowindex :
colindex :
attrib :
content :
doctype :
common_attrib :
containers :