htmlExperimental html output class
Located in /nasmail/class/html.class.php (line 19)
void
html
([string $tag = ''], [string $text = ''], [string|array $style = ''], [string $class = ''], [string $id = ''], [array $xtr_prop = ''], [array $javascript = ''])
void
AddChild
([string $tag = ''], [string $text = ''], [string|array $style = ''], [string $class = ''], [string $id = ''], [array $xtr_prop = ''], [array $javascript = ''])
string
$class
= '' (line 40)
array
$html_el
= array() (line 48)
string
$id
= '' (line 44)
array
$javascript
= '' (line 54)
Keys should store javascript events (onclick, onmouseover and others).
Values should store javascript call without trailing semicolon
string|array
$style
= '' (line 36)
If array is used, keys should store html elements and values should control closing of these elements.
For example: array('b'=>true,'img src="../images/plus.png"'=>false) add bold tag and close it. also add img tag and don't close it
string
$tag
= '' (line 23)
string
$text
= '' (line 28)
If tag is not pre or code, text is automatically wordwrapped at 75 bytes and indented
array
$xtr_prop
= '' (line 60)
Key should contain property name and value should contain value.
If key is integer, only value is printed
Constructor html (line 73)
Constructor function
AddChild (line 115)
Adds nested html element
echoHtml (line 181)
Prints html object
FindId (line 127)
Locate nested object
htmlAdd (line 91)
InsToId (line 152)
Adds nested objects to selected child object
scriptAdd (line 164)
Adds html script element
Documentation generated on Sun, 22 Nov 2009 17:36:37 +0200 by phpDocumentor 1.4.3