eZTemplateSwitchFunction Class Reference
[Template functions]
Handles conditional output in templates using function "switch".
More...
List of all members.
Detailed Description
Handles conditional output in templates using function "switch".
This allows for writing switch/case sentences (similar to if/else if/else) which you normally find in programming languages. With this you can display text depending on a certain template variable.
{* Matches $a against $b or $c *}
{switch match=$a}
{case match=$b}
Matched $b
{/case}
{case match=$c}
Matched $c
{/case}
{/switch}
Definition at line eztemplateswitchfunction.php.
Constructor & Destructor Documentation
eZTemplateSwitchFunction::eZTemplateSwitchFunction |
( |
$ |
name = "switch" |
) |
|
|
Member Function Documentation
eZTemplateSwitchFunction::attributeList |
( |
|
) |
|
|
& eZTemplateSwitchFunction::functionList |
( |
|
) |
|
|
eZTemplateSwitchFunction::hasChildren |
( |
|
) |
|
|
eZTemplateSwitchFunction::process |
( |
&$ |
tpl, |
|
|
&$ |
textElements, |
|
|
$ |
functionName, |
|
|
$ |
functionChildren, |
|
|
$ |
functionParameters, |
|
|
$ |
functionPlacement, |
|
|
$ |
rootNamespace, |
|
|
$ |
currentNamespace |
|
) |
|
|
The documentation for this class was generated from the following file:
|