Derrived method for link tags
string
a
(mixed $attr, string $cont)
-
mixed
$attr: Hash array with tag attributes or string with link location (href)
-
string
$cont: Link content
Create string with attributes
string
attrib_string
([array $attrib = array()], [array $allowed = null])
-
array
$attrib: Associative arry with tag attributes
-
array
$allowed: List of allowed attributes
Derrived method for line breaks
string
br
([ $attrib = array()])
Derrived method for <div> containers
string
div
([mixed $attr = null], [string $cont = null])
-
mixed
$attr: Hash array with tag attributes or string with class name
-
string
$cont: Div content
Derrived method to create <iframe></iframe>
string
iframe
([mixed $attr = null], [ $cont = null])
-
mixed
$attr: Hash array with tag attributes or string with frame source (src)
-
$cont
Derrived method to create <img />
string
img
([mixed $attr = null])
-
mixed
$attr: Hash array with tag attributes or string with image source (src)
Derrived method for form element labels
string
label
(mixed $attr, string $cont)
-
mixed
$attr: Hash array with tag attributes or string with 'for' attrib
-
string
$cont: Tag content
Derrived method for <p> blocks
string
p
([mixed $attr = null], [string $cont = null])
-
mixed
$attr: Hash array with tag attributes or string with class name
-
string
$cont: Paragraph content
Convert a HTML attribute string attributes to an associative array (name => value)
array
parse_attrib_string
(string $str)
-
string
$str: Input string
Replacing specials characters in html attribute value
string
quote
(string $str)
-
string
$str: Input string
Derrived method to create <script> tags
string
script
(mixed $attr, [string $cont = null])
-
mixed
$attr: Hash array with tag attributes or string with script source (src)
-
string
$cont: Javascript code to be placed as tag content
Derrived method for inline span tags
string
span
(mixed $attr, string $cont)
-
mixed
$attr: Hash array with tag attributes or string with class name
-
string
$cont: Tag content
Generic method to create a HTML tag
string
tag
(string $tagname, [array $attrib = array()], [string $content = null], [array $allowed_attrib = null])
-
string
$tagname: Tag name
-
array
$attrib: Tag attributes as key/value pairs
-
string
$content: Optinal Tag content (creates a container tag)
-
array
$allowed_attrib: List with allowed attributes, omit to allow all
Constructor
html
__construct
([array $attrib = array()])
-
array
$attrib: Hash array with tag attributes
Redefined in descendants as:
Return the tag code
string
show
()
Redefined in descendants as: