Public Member Functions | |
| __construct ($name, $attributes=null, $autoClose=false) | |
| __destruct () | |
| setContent ($content) | |
| render () | |
| getId () | |
| getAttr ($name) | |
| setAttr ($name, $value) | |
Protected Member Functions | |
| formatAttributes ($attributes) | |
Protected Attributes | |
| $autoClose | |
| $name | |
| $attributes | |
| $content | |
Static Protected Attributes | |
| static | $ids = array() |
Generic HTML Element class
Definition at line 31 of file html.lib.php.
| __construct | ( | $ | name, | |
| $ | attributes = null, |
|||
| $ | autoClose = false | |||
| ) |
| string | $name html element name ('input', 'p'...) | |
| array | $attributes associative array of attributes | |
| bool | $autoClose set to true for an autoclosed element (<input />, <img />...), default false |
Definition at line 46 of file html.lib.php.
| __destruct | ( | ) |
Definition at line 71 of file html.lib.php.
| formatAttributes | ( | $ | attributes | ) | [protected] |
Format attributes
| array | $attributes associative array of attributes |
Definition at line 118 of file html.lib.php.
| getAttr | ( | $ | name | ) |
Return the value of the given attribute
| string | $name attribute name |
Definition at line 161 of file html.lib.php.
| getId | ( | ) |
| render | ( | ) |
Implements Claro_Renderer.
Reimplemented in Claro_Utils_Datagrid, and Claro_Html_Container.
Definition at line 101 of file html.lib.php.
| setAttr | ( | $ | name, | |
| $ | value | |||
| ) |
Set or modify the value of the given attribute
| string | $name attribute name | |
| string | $value attribute value |
Definition at line 178 of file html.lib.php.
| setContent | ( | $ | content | ) |
$attributes [protected] |
Definition at line 37 of file html.lib.php.
$autoClose [protected] |
Definition at line 35 of file html.lib.php.
$content [protected] |
Definition at line 38 of file html.lib.php.
$ids = array() [static, protected] |
Definition at line 33 of file html.lib.php.
$name [protected] |
Definition at line 36 of file html.lib.php.
1.6.3