XOOPS  2.6.0
Xoops\Html\Attributes Class Reference
Inheritance diagram for Xoops\Html\Attributes:
Inheritance graph

Public Member Functions

 addAttribute ($name, $value)
 
 getAttribute ($name)
 
 hasAttribute ($name)
 
 renderAttributeString ()
 
 setAttribute ($name, $value=null)
 
 setAttributes ($values)
 
 unsetAttribute ($name)
 

Protected Attributes

 $attributes = array()
 

Detailed Description

Definition at line 25 of file Attributes.php.

Member Function Documentation

Xoops\Html\Attributes::addAttribute (   $name,
  $value 
)

add an element attribute value to a multi-value attribute (like class)

Parameters
string$namename of the attribute
string$valuevalue for the attribute
Returns
void

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().

Here is the call graph for this function:

Here is the caller graph for this function:

Xoops\Html\Attributes::hasAttribute (   $name)

is the attribute set?

Parameters
string$namename of the attribute
Returns
boolean

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().

Here is the caller graph for this function:

Xoops\Html\Attributes::renderAttributeString ( )

render attributes as a string to include in HTML output

Returns
string

Definition at line 138 of file Attributes.php.

References $name, and Xoops\Html\Attributes\hasAttribute().

Referenced by Xoops\Html\Img\render().

Here is the call graph for this function:

Here is the caller graph for this function:

Xoops\Html\Attributes::setAttributes (   $values)

Set attributes as specified in an array

Parameters
array$valuesan array of name => value pairs of attributes to set
Returns
void

Definition at line 70 of file Attributes.php.

References $name, and Xoops\Html\Attributes\setAttribute().

Referenced by Xoops\Html\Img\__construct().

Here is the call graph for this function:

Here is the caller graph for this function:

Xoops\Html\Attributes::unsetAttribute (   $name)

Unset an attribute

Parameters
string$namename of the attribute
Returns
void

Definition at line 58 of file Attributes.php.

References $name.

Referenced by Xoops\Form\Checkbox\render(), and Xoops\Form\Radio\render().

Here is the caller graph for this function:

Member Data Documentation


The documentation for this class was generated from the following file: