eZPublish  3.8
eZTemplateArrayOperator Class Reference

Dynamic creation of arrays using operator "array". More...

Public Member Functions

 arrayTrans ($operatorName, &$node, &$tpl, &$resourceData, &$element, &$lastElement, &$elementList, &$elementTree, &$parameters)
 
 compareTrans ($operatorName, &$node, &$tpl, &$resourceData, &$element, &$lastElement, &$elementList, &$elementTree, &$parameters)
 
 extractTrans ($operatorName, &$node, &$tpl, &$resourceData, &$element, &$lastElement, &$elementList, &$elementTree, &$parameters)
 
 eZTemplateArrayOperator ($arrayName= 'array', $hashName= 'hash', $arrayPrependName= 'array_prepend', $prependName= 'prepend', $arrayAppendName= 'array_append', $appendName= 'append', $arrayMergeName= 'array_merge', $mergeName= 'merge', $containsName= 'contains', $compareName= 'compare', $extractName= 'extract', $extractLeftName= 'extract_left', $extractRightName= 'extract_right', $beginsWithName= 'begins_with', $endsWithName= 'ends_with', $implodeName= 'implode', $explodeName= 'explode', $repeatName= 'repeat', $reverseName= 'reverse', $insertName= 'insert', $removeName= 'remove', $replaceName= 'replace', $uniqueName= 'unique', $arraySumName= 'array_sum')
 
 mergeTrans ($operatorName, &$node, &$tpl, &$resourceData, &$element, &$lastElement, &$elementList, &$elementTree, &$parameters)
 
 modify (&$tpl, &$operatorName, &$operatorParameters, &$rootNamespace, &$currentNamespace, &$operatorValue, &$namedParameters, $placement)
 
 namedParameterList ()
 
 namedParameterPerOperator ()
 
operatorList ()
 
 operatorTemplateHints ()
 

Private Attributes

 $ArrayName
 
 $HashName
 
 $Operators
 

Detailed Description

Dynamic creation of arrays using operator "array".

Creates an operator which can create arrays dynamically by adding all operator parameters as array elements.

// Example template code
{array(1,"test")}
{array(array(1,2),3)}

Member Function Documentation

eZTemplateArrayOperator::arrayTrans (   $operatorName,
$node,
$tpl,
$resourceData,
$element,
$lastElement,
$elementList,
$elementTree,
$parameters 
)
eZTemplateArrayOperator::compareTrans (   $operatorName,
$node,
$tpl,
$resourceData,
$element,
$lastElement,
$elementList,
$elementTree,
$parameters 
)
eZTemplateArrayOperator::extractTrans (   $operatorName,
$node,
$tpl,
$resourceData,
$element,
$lastElement,
$elementList,
$elementTree,
$parameters 
)
eZTemplateArrayOperator::eZTemplateArrayOperator (   $arrayName = 'array',
  $hashName = 'hash',
  $arrayPrependName = 'array_prepend',
  $prependName = 'prepend',
  $arrayAppendName = 'array_append',
  $appendName = 'append',
  $arrayMergeName = 'array_merge',
  $mergeName = 'merge',
  $containsName = 'contains',
  $compareName = 'compare',
  $extractName = 'extract',
  $extractLeftName = 'extract_left',
  $extractRightName = 'extract_right',
  $beginsWithName = 'begins_with',
  $endsWithName = 'ends_with',
  $implodeName = 'implode',
  $explodeName = 'explode',
  $repeatName = 'repeat',
  $reverseName = 'reverse',
  $insertName = 'insert',
  $removeName = 'remove',
  $replaceName = 'replace',
  $uniqueName = 'unique',
  $arraySumName = 'array_sum' 
)

Initializes the array operator with the operator name $name.

eZTemplateArrayOperator::mergeTrans (   $operatorName,
$node,
$tpl,
$resourceData,
$element,
$lastElement,
$elementList,
$elementTree,
$parameters 
)
eZTemplateArrayOperator::modify ( $tpl,
$operatorName,
$operatorParameters,
$rootNamespace,
$currentNamespace,
$operatorValue,
$namedParameters,
  $placement 
)
eZTemplateArrayOperator::namedParameterList ( )
eZTemplateArrayOperator::namedParameterPerOperator ( )
Returns
true to tell the template engine that the parameter list exists per operator type.
& eZTemplateArrayOperator::operatorList ( )

Returns the operators in this class.

eZTemplateArrayOperator::operatorTemplateHints ( )

Member Data Documentation

eZTemplateArrayOperator::$ArrayName
private
eZTemplateArrayOperator::$HashName
private
eZTemplateArrayOperator::$Operators
private

Referenced by operatorList().


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