eZ Publish  [4.2]
eZTemplateArrayOperator Class Reference

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

List of all members.

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 ()

Public 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)}

Definition at line 47 of file eztemplatearrayoperator.php.


Member Function Documentation

eZTemplateArrayOperator::arrayTrans ( operatorName,
&$  node,
tpl,
&$  resourceData,
element,
lastElement,
elementList,
elementTree,
&$  parameters 
)

Definition at line 302 of file eztemplatearrayoperator.php.

eZTemplateArrayOperator::compareTrans ( operatorName,
&$  node,
tpl,
&$  resourceData,
element,
lastElement,
elementList,
elementTree,
&$  parameters 
)

Definition at line 1051 of file eztemplatearrayoperator.php.

eZTemplateArrayOperator::extractTrans ( operatorName,
&$  node,
tpl,
&$  resourceData,
element,
lastElement,
elementList,
elementTree,
&$  parameters 
)

Definition at line 1242 of file eztemplatearrayoperator.php.

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.

Definition at line 52 of file eztemplatearrayoperator.php.

eZTemplateArrayOperator::mergeTrans ( operatorName,
&$  node,
tpl,
&$  resourceData,
element,
lastElement,
elementList,
elementTree,
&$  parameters 
)

Definition at line 1345 of file eztemplatearrayoperator.php.

eZTemplateArrayOperator::modify ( tpl,
operatorName,
operatorParameters,
rootNamespace,
currentNamespace,
&$  operatorValue,
namedParameters,
placement 
)

Definition at line 1576 of file eztemplatearrayoperator.php.

eZTemplateArrayOperator::namedParameterList ( )
eZTemplateArrayOperator::namedParameterPerOperator ( )
Returns:
true to tell the template engine that the parameter list exists per operator type.

Definition at line 1511 of file eztemplatearrayoperator.php.

eZTemplateArrayOperator::operatorList ( )

Returns the operators in this class.

Definition at line 131 of file eztemplatearrayoperator.php.

eZTemplateArrayOperator::operatorTemplateHints ( )

Definition at line 136 of file eztemplatearrayoperator.php.


Member Data Documentation

eZTemplateArrayOperator::$ArrayName

Definition at line 2118 of file eztemplatearrayoperator.php.

eZTemplateArrayOperator::$HashName

Definition at line 2119 of file eztemplatearrayoperator.php.

eZTemplateArrayOperator::$Operators

Definition at line 2117 of file eztemplatearrayoperator.php.


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