Public Member Functions | |
activate (&$g, &$tag) | |
_printAttribute (&$g, &$tag, &$realName, &$varName, $default=false) | |
_attributeExpression (&$g, &$tag, &$sub) | |
Public Attributes | |
$_overwritten = array() |
This template attribute defines xhtml entity attributes.
Assuming link variable :
$link->href = "http://www.google.fr"; $link->title = "google search engine"; $link->text = "google";
The template code :
<a href="http://www.example.com" title="sample title" class="cssLink"
tal:attributes="href link/href; title link/title" tal:content="href link/text"
>sample text
Will produce :
As shown above, non overwritten attributes are keep in result xhtml.
Definition at line 56 of file TAL/Attributes.php.
|
Definition at line 142 of file TAL/Attributes.php. References _attributeExpression(), and name. Referenced by _attributeExpression(), and activate(). |
|
Definition at line 120 of file TAL/Attributes.php. References $_phptal_xhtml_boolean_attributes, and _printAttribute(). Referenced by _printAttribute(). |
|
Reimplemented from PHPTAL_Attribute. Definition at line 60 of file TAL/Attributes.php. References $_phptal_xhtml_boolean_attributes, _attributeExpression(), _PHPTAL_ES_RECEIVER_IS_TEMP, and activate(). Referenced by activate(). |
|
Definition at line 58 of file TAL/Attributes.php. |