Property | Type | Description | |
---|---|---|---|
$_attributeArray | array | attributes of the element | |
$_singletonTags | array | array of singleton tags | |
$_tag | string | tag of the element |
Method | Description | |
---|---|---|
__toString ( ) : string | stringify the element | |
addClass ( string $className = null ) : |
add class to the element | |
attr ( mixed $attribute = null, string $value = null ) : |
set attribute to the element | |
copy ( ) : |
copy the element | |
init ( string $tag = null, array $attributeArray = [] ) : |
init the class | |
removeAttr ( string $attribute = null ) : |
remove attribute from the element | |
removeClass ( string $className = null ) : |
remove class from the element | |
render ( ) : string | render the element | |
text ( string $text = null ) : |
set text to the element | |
val ( string $value = null ) : |
set value to the element |
Method | Description | |
---|---|---|
_editClass ( string $className = null, string $type = null ) : |
edit class helper |
protected _editClass ( string $className = null, string $type = null ) : |
||
$className | string | name of the classes |
$type | string | add or remove |
return |
public removeAttr ( string $attribute = null ) : |
||
$attribute | string | name of attributes |
return |
public removeClass ( string $className = null ) : |
||
$className | string | name of the classes |
return |
protected array $_attributeArray | ||
return | array |
protected array $_singletonTags | ||
return | array |