eZ Publish  [4.2]
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 45 of file eztemplatefunctionelement.php.


Member Function Documentation

eZTemplateFunctionElement::appendChild ( &$  node)

Appends the child element $node to the child list.

Definition at line 125 of file eztemplatefunctionelement.php.

& eZTemplateFunctionElement::children ( )

Returns a reference to the children.

Definition at line 117 of file eztemplatefunctionelement.php.

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

Initializes the function with a name and parameter array.

Definition at line 50 of file eztemplatefunctionelement.php.

eZTemplateFunctionElement::name ( )

Returns the name of the function.

Definition at line 80 of file eztemplatefunctionelement.php.

& eZTemplateFunctionElement::parameters ( )

Returns a reference to the parameter list.

Definition at line 109 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 98 of file eztemplatefunctionelement.php.

eZTemplateFunctionElement::resourceRelation ( )

Definition at line 67 of file eztemplatefunctionelement.php.

eZTemplateFunctionElement::serializeData ( )

Definition at line 85 of file eztemplatefunctionelement.php.

eZTemplateFunctionElement::setResourceRelation ( resource)

Definition at line 57 of file eztemplatefunctionelement.php.

eZTemplateFunctionElement::setTemplateNameRelation ( templateName)

Definition at line 62 of file eztemplatefunctionelement.php.

eZTemplateFunctionElement::templateNameRelation ( )

Definition at line 72 of file eztemplatefunctionelement.php.


Member Data Documentation

eZTemplateFunctionElement::$Children = array()

The child elements.

Definition at line 135 of file eztemplatefunctionelement.php.

eZTemplateFunctionElement::$Name

The name of the function.

Definition at line 131 of file eztemplatefunctionelement.php.

eZTemplateFunctionElement::$Params

The parameter list.

Definition at line 133 of file eztemplatefunctionelement.php.

eZTemplateFunctionElement::$Resource

Definition at line 137 of file eztemplatefunctionelement.php.

eZTemplateFunctionElement::$TemplateName

Definition at line 138 of file eztemplatefunctionelement.php.


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