XOOPS
2.6.0
|
Public Member Functions | |
addAttribute ($name, $value) | |
getAttribute ($name) | |
hasAttribute ($name) | |
renderAttributeString () | |
setAttribute ($name, $value=null) | |
setAttributes ($values) | |
unsetAttribute ($name) | |
Protected Attributes | |
$attributes = array() | |
Definition at line 25 of file Attributes.php.
Xoops\Html\Attributes::addAttribute | ( | $name, | |
$value | |||
) |
add an element attribute value to a multi-value attribute (like class)
string | $name | name of the attribute |
string | $value | value for the attribute |
Definition at line 117 of file Attributes.php.
References $name, and Xoops\Html\Attributes\hasAttribute().
Referenced by Xoops\Form\DateSelect\render(), Xoops\Form\Button\render(), Xoops\Form\ButtonTray\render(), Xoops\Form\TextArea\render(), Xoops\Form\Text\render(), Xoops\Form\Password\render(), and Xoops\Form\Element\setClass().
Xoops\Html\Attributes::getAttribute | ( | $name | ) |
get an attribute value
string | $name | name of the attribute |
Definition at line 86 of file Attributes.php.
References $name.
Referenced by Xoops\Form\Element\getAccessKey(), Xoops\Form\Element\getClass(), Xoops\Form\TextArea\getCols(), Xoops\Form\Text\getMaxlength(), Xoops\Form\Password\getMaxlength(), Xoops\Form\Element\getName(), Xoops\Form\Element\getPattern(), Xoops\Form\TextArea\getPlaceholder(), Xoops\Form\Text\getPlaceholder(), Xoops\Form\TextArea\getRows(), Xoops\Form\Text\getSize(), Xoops\Form\Password\getSize(), Xoops\Form\Select\getSize(), Xoops\Form\Element\getTitle(), Xoops\Form\Button\getType(), Xoops\Form\ButtonTray\getType(), Xoops\Form\DateSelect\render(), and Xoops\Form\Element\renderAttributeString().
Xoops\Html\Attributes::hasAttribute | ( | $name | ) |
is the attribute set?
string | $name | name of the attribute |
Definition at line 103 of file Attributes.php.
References $name.
Referenced by Xoops\Html\Attributes\addAttribute(), Xoops\Form\Element\getTitle(), Xoops\Form\Element\isHidden(), Xoops\Form\Select\isMultiple(), Xoops\Form\Element\isRequired(), Xoops\Form\Checkbox\render(), Xoops\Html\Attributes\renderAttributeString(), and Xoops\Form\Element\renderAttributeString().
Xoops\Html\Attributes::renderAttributeString | ( | ) |
render attributes as a string to include in HTML output
Definition at line 138 of file Attributes.php.
References $name, and Xoops\Html\Attributes\hasAttribute().
Referenced by Xoops\Html\Img\render().
Xoops\Html\Attributes::setAttribute | ( | $name, | |
$value = null |
|||
) |
Set an attribute
string | $name | name of the attribute |
mixed | $value | value for the attribute |
Definition at line 42 of file Attributes.php.
References $name.
Referenced by Xoops\Form\File\__construct(), Xoops\Form\Hidden\__construct(), Xoops\Form\Button\__construct(), Xoops\Form\Mail\__construct(), Xoops\Form\Url\__construct(), Xoops\Form\ButtonTray\__construct(), Xoops\Form\Radio\__construct(), Xoops\Form\Checkbox\__construct(), Xoops\Form\TextArea\__construct(), XoopsEditor\__construct(), Xoops\Form\Text\__construct(), Xoops\Form\Password\__construct(), Xoops\Form\Select\__construct(), Xoops\Form\Password\getPlaceholder(), Xoops\Form\Checkbox\render(), Xoops\Form\Radio\render(), Xoops\Form\Element\renderAttributeString(), Xoops\Form\Element\setAccessKey(), Xoops\Html\Attributes\setAttributes(), Xoops\Form\Element\setHidden(), Xoops\Form\Element\setName(), Xoops\Form\Element\setPattern(), Xoops\Form\Element\setRequired(), and Xoops\Form\Element\setTitle().
Xoops\Html\Attributes::setAttributes | ( | $values | ) |
Set attributes as specified in an array
array | $values | an array of name => value pairs of attributes to set |
Definition at line 70 of file Attributes.php.
References $name, and Xoops\Html\Attributes\setAttribute().
Referenced by Xoops\Html\Img\__construct().
Xoops\Html\Attributes::unsetAttribute | ( | $name | ) |
Unset an attribute
string | $name | name of the attribute |
Definition at line 58 of file Attributes.php.
References $name.
Referenced by Xoops\Form\Checkbox\render(), and Xoops\Form\Radio\render().
|
protected |
Definition at line 32 of file Attributes.php.
Referenced by Xoops\Html\Img\__construct(), Xoops\Form\File\render(), Xoops\Form\Hidden\render(), Xoops\Form\DateSelect\render(), Xoops\Form\Button\render(), Xoops\Form\ButtonTray\render(), Xoops\Form\TextArea\render(), Xoops\Form\Text\render(), Xoops\Form\Password\render(), and Xoops\Form\Select\render().