eZ Publish  [trunk]
eZTemplateFunctionElement Class Reference

Represents a function element in the template tree. More...

List of all members.

Public Member Functions

 appendChild (&$node)
children ()
 eZTemplateFunctionElement ($name, $params, $children=array())
 name ()
parameters ()
 process ($tpl, &$text, $nspace, $current_nspace)
 resourceRelation ()
 serializeData ()
 setResourceRelation ($resource)
 setTemplateNameRelation ($templateName)
 templateNameRelation ()

Public Attributes

 $Children = array()
 The child elements.
 $Name
 The name of the function.
 $Params
 The parameter list.
 $Resource
 $TemplateName

Detailed Description

Represents a function element in the template tree.

This class represents a function with it's parameters. It also contains child elements if the function was registered as having children.

Definition at line 25 of file eztemplatefunctionelement.php.


Member Function Documentation

Appends the child element $node to the child list.

Definition at line 105 of file eztemplatefunctionelement.php.

Returns a reference to the children.

Definition at line 97 of file eztemplatefunctionelement.php.

eZTemplateFunctionElement::eZTemplateFunctionElement ( name,
params,
children = array() 
)

Initializes the function with a name and parameter array.

Definition at line 30 of file eztemplatefunctionelement.php.

Returns the name of the function.

Definition at line 60 of file eztemplatefunctionelement.php.

Returns a reference to the parameter list.

Definition at line 89 of file eztemplatefunctionelement.php.

eZTemplateFunctionElement::process ( tpl,
&$  text,
nspace,
current_nspace 
)

Tries to run the function with the children, the actual function execution is done by the template class.

Definition at line 78 of file eztemplatefunctionelement.php.


Member Data Documentation

eZTemplateFunctionElement::$Children = array()

The child elements.

Definition at line 115 of file eztemplatefunctionelement.php.

eZTemplateFunctionElement::$Name

The name of the function.

Definition at line 111 of file eztemplatefunctionelement.php.

eZTemplateFunctionElement::$Params

The parameter list.

Definition at line 113 of file eztemplatefunctionelement.php.

eZTemplateFunctionElement::$Resource

Definition at line 117 of file eztemplatefunctionelement.php.

eZTemplateFunctionElement::$TemplateName

Definition at line 118 of file eztemplatefunctionelement.php.


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