eZPublishCommunityProject(LegacyStack)  2013.6
eZTemplateFunctionElement Class Reference

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

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. More...
 
 $Name
 The name of the function. More...
 
 $Params
 The parameter list. More...
 
 $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.

Member Function Documentation

eZTemplateFunctionElement::appendChild ( $node)

Appends the child element $node to the child list.

& eZTemplateFunctionElement::children ( )

Returns a reference to the children.

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

Initializes the function with a name and parameter array.

eZTemplateFunctionElement::name ( )

Returns the name of the function.

& eZTemplateFunctionElement::parameters ( )

Returns a reference to the parameter list.

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.

eZTemplateFunctionElement::resourceRelation ( )
eZTemplateFunctionElement::serializeData ( )
eZTemplateFunctionElement::setResourceRelation (   $resource)
eZTemplateFunctionElement::setTemplateNameRelation (   $templateName)
eZTemplateFunctionElement::templateNameRelation ( )

Member Data Documentation

eZTemplateFunctionElement::$Children = array()

The child elements.

Referenced by children().

eZTemplateFunctionElement::$Name

The name of the function.

Referenced by name().

eZTemplateFunctionElement::$Params

The parameter list.

Referenced by parameters().

eZTemplateFunctionElement::$Resource

Referenced by resourceRelation().

eZTemplateFunctionElement::$TemplateName

Referenced by templateNameRelation().


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