|
eZ Publish
[4.2]
|
FOR loop. More...
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 = 'for' |
FOR loop.
Syntax:
{for <number> to <number> as $itemVar [sequence <array> as $seqVar]}
[{delimiter}...{/delimiter}]
[{break}]
[{continue}]
[{skip}]
{/for}
Examples:
Definition at line 58 of file eztemplateforfunction.php.
| eZTemplateForFunction::attributeList | ( | ) |
Returns the attribute list. key: parameter name value: can have children
Definition at line 76 of file eztemplateforfunction.php.
| & eZTemplateForFunction::functionList | ( | ) |
Returns an array of the function names, required for eZTemplate::registerFunctions.
Definition at line 65 of file eztemplateforfunction.php.
| eZTemplateForFunction::functionTemplateHints | ( | ) |
Returns the array with hits for the template compiler.
Definition at line 88 of file eztemplateforfunction.php.
| eZTemplateForFunction::hasChildren | ( | ) |
Returns true, telling the template parser that the function can have children.
Definition at line 230 of file eztemplateforfunction.php.
| eZTemplateForFunction::process | ( | $ | tpl, |
| &$ | textElements, | ||
| $ | functionName, | ||
| $ | functionChildren, | ||
| $ | functionParameters, | ||
| $ | functionPlacement, | ||
| $ | rootNamespace, | ||
| $ | currentNamespace | ||
| ) |
Actually executes the function and its children (in processed mode).
Definition at line 162 of file eztemplateforfunction.php.
| eZTemplateForFunction::templateNodeTransformation | ( | $ | functionName, |
| &$ | node, | ||
| $ | tpl, | ||
| $ | parameters, | ||
| $ | privateData | ||
| ) |
Compiles the function and its children into PHP code.
Definition at line 99 of file eztemplateforfunction.php.
| const eZTemplateForFunction::FUNCTION_NAME = 'for' |
Definition at line 60 of file eztemplateforfunction.php.
Referenced by functionList(), functionTemplateHints(), process(), and templateNodeTransformation().