Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

PHPTAL_Attribute_TAL_Attributes Class Reference

Inheritance diagram for PHPTAL_Attribute_TAL_Attributes:

Inheritance graph
[legend]
Collaboration diagram for PHPTAL_Attribute_TAL_Attributes:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 activate (&$g, &$tag)
 _printAttribute (&$g, &$tag, &$realName, &$varName, $default=false)
 _attributeExpression (&$g, &$tag, &$sub)

Public Attributes

 $_overwritten = array()

Detailed Description

tal:attributes attribute handler.

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 :

google

As shown above, non overwritten attributes are keep in result xhtml.

Author:
Laurent Bedubourg <laurent.bedubourg@free.fr>

Definition at line 56 of file TAL/Attributes.php.


Member Function Documentation

PHPTAL_Attribute_TAL_Attributes::_attributeExpression &$  g,
&$  tag,
&$  sub
 

Definition at line 142 of file TAL/Attributes.php.

References _attributeExpression(), and name.

Referenced by _attributeExpression(), and activate().

PHPTAL_Attribute_TAL_Attributes::_printAttribute &$  g,
&$  tag,
&$  realName,
&$  varName,
default = false
 

Definition at line 120 of file TAL/Attributes.php.

References $_phptal_xhtml_boolean_attributes, and _printAttribute().

Referenced by _printAttribute().

PHPTAL_Attribute_TAL_Attributes::activate &$  g,
&$  tag
 

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


Member Data Documentation

PHPTAL_Attribute_TAL_Attributes::$_overwritten = array()
 

Definition at line 58 of file TAL/Attributes.php.


The documentation for this class was generated from the following file:
Generated on Tue Jun 29 23:40:55 2004 for Mediawiki by doxygen 1.3.7