|
eZ Publish
[trunk]
|
Wrapped array looping in templates using function "sequence". More...
Public Member Functions | |
| eZTemplateSequenceFunction () | |
| functionList () | |
| functionTemplateHints () | |
| hasChildren () | |
| process ($tpl, &$textElements, $functionName, $functionChildren, $functionParameters, $functionPlacement, $rootNamespace, $currentNamespace) | |
| templateNodeSequenceCreate (&$node, $tpl, $parameters, $nameValue, $loopValue) | |
| templateNodeSequenceIterate (&$node, $tpl, $parameters, $nameValue) | |
| templateNodeTransformation ($functionName, &$node, $tpl, $parameters, $privateData) | |
Public Attributes | |
| $SequenceName | |
| Name of sequence function. | |
Wrapped array looping in templates using function "sequence".
This class allows for creating arrays which are looped independently of a section. This is useful if you want to create multiple sequences.
// Example of template code
{* Init the sequence *}
{sequence name=seq loop=array(2,5,7)}
{* Use it *}
{$seq:item}
{* Iterate it *}
{sequence name=seq}
Definition at line 33 of file eztemplatesequencefunction.php.
Initializes the function with the function name $inc_name.
Definition at line 38 of file eztemplatesequencefunction.php.
Returns an array of the function names, required for eZTemplate::registerFunctions.
Definition at line 46 of file eztemplatesequencefunction.php.
Returns the array with hits for the template compiler.
Definition at line 55 of file eztemplatesequencefunction.php.
Returns false, telling the template parser that this is a single tag.
Definition at line 178 of file eztemplatesequencefunction.php.
| eZTemplateSequenceFunction::process | ( | $ | tpl, |
| &$ | textElements, | ||
| $ | functionName, | ||
| $ | functionChildren, | ||
| $ | functionParameters, | ||
| $ | functionPlacement, | ||
| $ | rootNamespace, | ||
| $ | currentNamespace | ||
| ) |
Either initializes the sequence or iterates it.
Definition at line 132 of file eztemplatesequencefunction.php.
| eZTemplateSequenceFunction::templateNodeSequenceCreate | ( | &$ | node, |
| $ | tpl, | ||
| $ | parameters, | ||
| $ | nameValue, | ||
| $ | loopValue | ||
| ) |
Definition at line 63 of file eztemplatesequencefunction.php.
Referenced by templateNodeTransformation().
| eZTemplateSequenceFunction::templateNodeSequenceIterate | ( | &$ | node, |
| $ | tpl, | ||
| $ | parameters, | ||
| $ | nameValue | ||
| ) |
Definition at line 78 of file eztemplatesequencefunction.php.
Referenced by templateNodeTransformation().
| eZTemplateSequenceFunction::templateNodeTransformation | ( | $ | functionName, |
| &$ | node, | ||
| $ | tpl, | ||
| $ | parameters, | ||
| $ | privateData | ||
| ) |
Definition at line 91 of file eztemplatesequencefunction.php.
| eZTemplateSequenceFunction::$SequenceName |
Name of sequence function.
Definition at line 184 of file eztemplatesequencefunction.php.