Methods summary
abstract public
|
|
public
string
|
|
public
Adi\Html\Tag
|
|
public
|
|
protected
string
|
#
prepareAttributes( )
Prepares a string of attributes ready for use in the tag
Prepares a string of attributes ready for use in the tag
Returns
string
|
public
Adi\Html\AbstractTag
|
#
setAttribute( string $name, string $value )
Set value of attribute
Parameters
- $name
- Attribute name
- $value
Returns
|
public
string|null
|
#
getAttribute( string $name )
Returns value of attribute
Returns value of attribute
Parameters
Returns
string|null
|
public
array
|
|
public
Adi\Html\AbstractTag
|
#
setId( string $id )
Set ID value
Parameters
Returns
|
public
Adi\Html\AbstractTag
|
#
setStyle( string $css, string $value = NULL )
Set CSS style value. All the earlier styles will be overridden.
Set CSS style value. All the earlier styles will be overridden.
Parameters
- $css
- Css style string
- $value
Returns
|
public
string|null
|
#
getStyle( string $css,… )
Get CSS style value.
Parameters
Returns
string|null
|
public
Adi\Html\AbstractTag
|
#
addStyle( string $css, string $value = NULL )
Add CSS style.
Parameters
- $css
- CSS property or CSS expression string
- $value
- CSS value
Returns
|
public
Adi\Html\AbstractTag
|
#
removeStyle( string $property )
Remove CSS style
Parameters
Returns
|
public
string|null
|
#
getId( )
Returns ID value
Returns
string|null
|
public
Adi\Html\AbstractTag
|
#
addClass( string $class )
Add class to tag
Parameters
- $class
- Class or class list as string separated by comma
Returns
|
public
Adi\Html\AbstractTag
|
#
removeClass( string $class )
Remove class from tag
Parameters
- $class
- Class or class list as string separated by comma
Returns
|
protected
string
|
#
prepareHtml( array $params = array() )
Prepares HTML code of tag
Prepares HTML code of tag
Parameters
- $params
- Parameters as associative array. Keys: tag => tag name, paired => is paired tag
Returns
string
|
public
string
|
|