eZPublishCommunityProject(LegacyStack)  2013.9
eZTemplateCompiledLoop Class Reference

Common code for compiling the loop functions. More...

Public Member Functions

 cleanup ()
 
 createSequenceVars ()
 
 eZTemplateCompiledLoop ($name, &$newNodes, $parameters, $nodePlacement, $uniqid, $node, $tpl, $privateData)
 
 hasSequence ()
 
 initVars ()
 
 iterateSequence ()
 
 processBody ()
 
 processChildren ()
 
 setCurrentSequenceValue ()
 

Public Attributes

 $Name
 
 $NewNodes
 
 $Node
 
 $NodePlacement
 
 $Parameters
 
 $PrivateData
 
 $Tpl
 
 $UniqID
 

Private Member Functions

 destroySequenceVars ()
 

Detailed Description

Common code for compiling the loop functions.

Member Function Documentation

eZTemplateCompiledLoop::cleanup ( )

Destroys PHP and template variables defined by the loop.

eZTemplateCompiledLoop::createSequenceVars ( )

Create PHP and template variables representing sequence specified for the loop.

Referenced by initVars().

eZTemplateCompiledLoop::destroySequenceVars ( )
private

Referenced by cleanup().

eZTemplateCompiledLoop::eZTemplateCompiledLoop (   $name,
$newNodes,
  $parameters,
  $nodePlacement,
  $uniqid,
  $node,
  $tpl,
  $privateData 
)
eZTemplateCompiledLoop::hasSequence ( )

Returns true if sequence has been specified for the loop in its parameters.

Referenced by cleanup(), createSequenceVars(), iterateSequence(), and setCurrentSequenceValue().

eZTemplateCompiledLoop::initVars ( )

create PHP and template variables needed for the loop.

eZTemplateCompiledLoop::iterateSequence ( )

Increments loop sequence.

Referenced by processBody().

eZTemplateCompiledLoop::processBody ( )

Generates loop body.

eZTemplateCompiledLoop::processChildren ( )

Referenced by processBody().

eZTemplateCompiledLoop::setCurrentSequenceValue ( )

Export current sequence value to the template variable specified in loop parameters.

Referenced by processBody().

Member Data Documentation

eZTemplateCompiledLoop::$Name
eZTemplateCompiledLoop::$NewNodes
eZTemplateCompiledLoop::$Node
eZTemplateCompiledLoop::$NodePlacement
eZTemplateCompiledLoop::$Parameters
eZTemplateCompiledLoop::$PrivateData
eZTemplateCompiledLoop::$Tpl
eZTemplateCompiledLoop::$UniqID

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