eZPublish  3.9
eZTemplateControlOperator Class Reference

Operators for checking variable type. More...

Public Member Functions

 condTransform ($operatorName, &$node, &$tpl, &$resourceData, &$element, &$lastElement, &$elementList, &$elementTree, &$parameters)
 eZTemplateControlOperator ($condName= 'cond', $firstSetName= 'first_set')
 modify (&$tpl, &$operatorName, &$operatorParameters, &$rootNamespace, &$currentNamespace, &$value, &$namedParameters, $placement)
 namedParameterList ()
 namedParameterPerOperator ()
operatorList ()
 operatorTemplateHints ()

Public Attributes

 The array of operators. More...

Detailed Description

Operators for checking variable type.

Usage: Evalue condition and if true return body cond(is_set($var),$var, true(),2) Return first element that is set first_set($var1,$var2,$var3,0)

Member Function Documentation

eZTemplateControlOperator::condTransform (   $operatorName,
eZTemplateControlOperator::eZTemplateControlOperator (   $condName = 'cond',
  $firstSetName = 'first_set' 

Initializes the operator class with the various operator names.

$condNameThe name array
eZTemplateControlOperator::modify ( $tpl,

Examines the input value and outputs a boolean value. See class documentation for more information.

eZTemplateControlOperator::namedParameterList ( )
eZTemplateControlOperator::namedParameterPerOperator ( )
true to tell the template engine that the parameter list exists per operator type.
& eZTemplateControlOperator::operatorList ( )

Returns the operators in this class.

eZTemplateControlOperator::operatorTemplateHints ( )

Member Data Documentation


The array of operators.

Referenced by operatorList().

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