eZ Publish  [4.2]
eZTemplateWhileFunction Class Reference

WHILE loop. More...

List of all members.

Public Member Functions

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

Public Attributes

const FUNCTION_NAME = 'while'

Detailed Description

WHILE loop.

Syntax:

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

Example:

    {while ne( $var, false() ) }
        I like big trucks
    {/while}

Definition at line 54 of file eztemplatewhilefunction.php.


Member Function Documentation

eZTemplateWhileFunction::attributeList ( )

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

Definition at line 72 of file eztemplatewhilefunction.php.

& eZTemplateWhileFunction::functionList ( )

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

Definition at line 61 of file eztemplatewhilefunction.php.

eZTemplateWhileFunction::functionTemplateHints ( )

Returns the array with hits for the template compiler.

Definition at line 84 of file eztemplatewhilefunction.php.

eZTemplateWhileFunction::hasChildren ( )

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

Definition at line 166 of file eztemplatewhilefunction.php.

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

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

Definition at line 133 of file eztemplatewhilefunction.php.

eZTemplateWhileFunction::templateNodeTransformation ( functionName,
&$  node,
tpl,
&$  parameters,
privateData 
)

Compiles the function and its children into PHP code.

Definition at line 95 of file eztemplatewhilefunction.php.


Member Data Documentation


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