|
eZ Publish
[trunk]
|
Code common for the loop functions in processed mode. More...
Public Member Functions | |
| cleanup () | |
| eZTemplateLoop ($functionName, &$functionParameters, $functionChildren, $functionPlacement, $tpl, &$textElements, $rootNamespace, $currentNamespace) | |
| hasSequence () | |
| incrementSequence () | |
| initialized () | |
| initLoopVariable ($varName) | |
| parseParamValue ($paramName, &$dst) | |
| parseParamVarName ($paramName, &$dst) | |
| parseScalarParamValue ($paramName, &$dst, &$isProxyObject) | |
| processChildren () | |
| processDelimiter ($index=false) | |
| processFunctionParameters () | |
| resetIteration () | |
| setSequenceVar () | |
Public Attributes | |
| $CurrentNamespace | |
| $delimiter | |
| $FunctionChildren | |
| $FunctionName | |
| $FunctionParameters | |
| $FunctionPlacement | |
| $Initialized | |
| $LoopVariablesNames | |
| $RootNamespace | |
| $Sequence | |
| $SequenceVarName | |
| $SkipDelimiter | |
| $SkipSequenceIncrement | |
| $TextElements | |
| $Tpl | |
Code common for the loop functions in processed mode.
Definition at line 43 of file eztemplateloop.php.
Destroys template variables defined by the loop.
Definition at line 149 of file eztemplateloop.php.
| eZTemplateLoop::eZTemplateLoop | ( | $ | functionName, |
| &$ | functionParameters, | ||
| $ | functionChildren, | ||
| $ | functionPlacement, | ||
| $ | tpl, | ||
| &$ | textElements, | ||
| $ | rootNamespace, | ||
| $ | currentNamespace | ||
| ) |
Definition at line 45 of file eztemplateloop.php.
Returns true if sequence has been specified for the loop in its parameters.
Definition at line 140 of file eztemplateloop.php.
Referenced by incrementSequence(), and setSequenceVar().
Increment current sequence value.
Definition at line 131 of file eztemplateloop.php.
Definition at line 102 of file eztemplateloop.php.
| eZTemplateLoop::initLoopVariable | ( | $ | varName | ) |
Checks if the given loop variable already exists. If it doesn't, store its name for later cleanup. Otherwise shows a warning message.
Definition at line 342 of file eztemplateloop.php.
Referenced by processFunctionParameters().
| eZTemplateLoop::parseParamValue | ( | $ | paramName, |
| &$ | dst | ||
| ) |
Parses value the given function parameter and stores it to $dst.
| $paramName | Parameter name. |
| $dst | Where to store parameter value. |
Definition at line 324 of file eztemplateloop.php.
| eZTemplateLoop::parseParamVarName | ( | $ | paramName, |
| &$ | dst | ||
| ) |
Parses the given function parameter that is supposed to contain a variable name. Extracted variable name is stored to $dst.
| $paramName | Parameter name. |
| $dst | Where to store parameter value. |
Definition at line 265 of file eztemplateloop.php.
Referenced by processFunctionParameters().
| eZTemplateLoop::parseScalarParamValue | ( | $ | paramName, |
| &$ | dst, | ||
| &$ | isProxyObject | ||
| ) |
Parses given function parameter and makes sure that it is not a proxy object ({section} loop iterator).
| $paramName | Parameter name. |
| $dst | Where to store parameter value. |
| $isProxyObject | boolean true is stored here if value of the parameter is a proxy object. |
Definition at line 294 of file eztemplateloop.php.
Definition at line 163 of file eztemplateloop.php.
| eZTemplateLoop::processDelimiter | ( | $ | index = false | ) |
If $loopCondition is true, shows delimiter (if one has been specified).
| $index | is needed for processing delimiter parameters such as modulo. Is current iteration index. |
Definition at line 229 of file eztemplateloop.php.
Definition at line 73 of file eztemplateloop.php.
Referenced by eZTemplateLoop().
Should be called each time a new iteration is started. Resets some internal variables.
Definition at line 122 of file eztemplateloop.php.
Export current loop sequence value to the template variable specified in loop parameters.
Definition at line 110 of file eztemplateloop.php.
| eZTemplateLoop::$CurrentNamespace |
Definition at line 366 of file eztemplateloop.php.
| eZTemplateLoop::$delimiter |
Definition at line 361 of file eztemplateloop.php.
| eZTemplateLoop::$FunctionChildren |
Definition at line 356 of file eztemplateloop.php.
| eZTemplateLoop::$FunctionName |
Definition at line 354 of file eztemplateloop.php.
| eZTemplateLoop::$FunctionParameters |
Definition at line 355 of file eztemplateloop.php.
| eZTemplateLoop::$FunctionPlacement |
Definition at line 357 of file eztemplateloop.php.
| eZTemplateLoop::$Initialized |
Definition at line 368 of file eztemplateloop.php.
| eZTemplateLoop::$LoopVariablesNames |
Before we create a new loop variable, we check if it already exists. If it doesn't, we store its name in this array, so that we know which variables to destroy after the loop execution finishes.
Definition at line 376 of file eztemplateloop.php.
| eZTemplateLoop::$RootNamespace |
Definition at line 365 of file eztemplateloop.php.
| eZTemplateLoop::$Sequence |
Definition at line 369 of file eztemplateloop.php.
| eZTemplateLoop::$SequenceVarName |
Definition at line 370 of file eztemplateloop.php.
| eZTemplateLoop::$SkipDelimiter |
Definition at line 359 of file eztemplateloop.php.
| eZTemplateLoop::$SkipSequenceIncrement |
Definition at line 360 of file eztemplateloop.php.
| eZTemplateLoop::$TextElements |
Definition at line 364 of file eztemplateloop.php.
| eZTemplateLoop::$Tpl |
Definition at line 363 of file eztemplateloop.php.