eZTemplateSequenceFunction Class Reference
[Template functions]

Wrapped array looping in templates using function "sequence". More...

List of all members.


Public Methods

 eZTemplateSequenceFunction ($inc_name="sequence")
functionList ()
 process (&$tpl,&$textElements,$functionName,$functionChildren,$functionParameters,$functionPlacement,$rootNamespace,$currentNamespace)
 hasChildren ()

Public Attributes

 SequenceName
 Name of sequence function.


Detailed Description

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 eztemplatesequencefunction.php.


Constructor & Destructor Documentation

eZTemplateSequenceFunction::eZTemplateSequenceFunction   inc_name = "sequence"
 

Initializes the function with the function name $inc_name.

Definition at line eztemplatesequencefunction.php.

References SequenceName.


Member Function Documentation

& eZTemplateSequenceFunction::functionList  
 

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

Definition at line eztemplatesequencefunction.php.

eZTemplateSequenceFunction::hasChildren  
 

Returns false, telling the template parser that this is a single tag.

Definition at line eztemplatesequencefunction.php.

eZTemplateSequenceFunction::process &$    tpl,
&$    textElements,
  functionName,
  functionChildren,
  functionParameters,
  functionPlacement,
  rootNamespace,
  currentNamespace
 

Either initializes the sequence or iterates it.

Definition at line eztemplatesequencefunction.php.


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

Exponential