eZPublish  3.8
eZTemplateDoFunction Class Reference

DO..WHILE loop. More...

Public Member Functions

 attributeList ()
 
functionList ()
 
 functionTemplateHints ()
 
 hasChildren ()
 
 process (&$tpl, &$textElements, $functionName, $functionChildren, $functionParameters, $functionPlacement, $rootNamespace, $currentNamespace)
 
 templateNodeTransformation ($functionName, &$node, &$tpl, $parameters, $privateData)
 

Detailed Description

DO..WHILE loop.

Syntax:

{do}
[{delimiter}...{/delimiter}]
[{break}]
[{continue}]
[{skip}]
{/do while <condition> [sequence <array> as $seqVar]}

Example:

{do}
One more beer, please.
{/do while eq( $drunk, false() )}

Member Function Documentation

eZTemplateDoFunction::attributeList ( )

Returns the attribute list key: parameter name value: can have children

& eZTemplateDoFunction::functionList ( )

Returns an array of the function names, required for eZTemplate::registerFunctions().

eZTemplateDoFunction::functionTemplateHints ( )

Returns the array with hits for the template compiler.

eZTemplateDoFunction::hasChildren ( )

Returns true, telling the template parser that the function can have children.

eZTemplateDoFunction::process ( $tpl,
$textElements,
  $functionName,
  $functionChildren,
  $functionParameters,
  $functionPlacement,
  $rootNamespace,
  $currentNamespace 
)

Actually executes the function and its children (in processed mode).

eZTemplateDoFunction::templateNodeTransformation (   $functionName,
$node,
$tpl,
  $parameters,
  $privateData 
)

Compiles the function and its children into PHP code.


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