Class for HTML code creation
package |
Framework |
---|---|
subpackage |
View |
__construct(array $attrib = array())
array
Hash array with tag attributes
show() : string
string
The finally composed HTML tag
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 :
attrib :
allowed :
content :
doctype :
common_attrib :
containers :