|
eZ Publish
[trunk]
|
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 () | |
Public Attributes | |
| $ArrayName | |
| $HashName | |
| $Operators | |
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 27 of file eztemplatearrayoperator.php.
| eZTemplateArrayOperator::arrayTrans | ( | $ | operatorName, |
| &$ | node, | ||
| $ | tpl, | ||
| &$ | resourceData, | ||
| $ | element, | ||
| $ | lastElement, | ||
| $ | elementList, | ||
| $ | elementTree, | ||
| &$ | parameters | ||
| ) |
Definition at line 282 of file eztemplatearrayoperator.php.
| eZTemplateArrayOperator::compareTrans | ( | $ | operatorName, |
| &$ | node, | ||
| $ | tpl, | ||
| &$ | resourceData, | ||
| $ | element, | ||
| $ | lastElement, | ||
| $ | elementList, | ||
| $ | elementTree, | ||
| &$ | parameters | ||
| ) |
Definition at line 1031 of file eztemplatearrayoperator.php.
| eZTemplateArrayOperator::extractTrans | ( | $ | operatorName, |
| &$ | node, | ||
| $ | tpl, | ||
| &$ | resourceData, | ||
| $ | element, | ||
| $ | lastElement, | ||
| $ | elementList, | ||
| $ | elementTree, | ||
| &$ | parameters | ||
| ) |
Definition at line 1222 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 32 of file eztemplatearrayoperator.php.
| eZTemplateArrayOperator::mergeTrans | ( | $ | operatorName, |
| &$ | node, | ||
| $ | tpl, | ||
| &$ | resourceData, | ||
| $ | element, | ||
| $ | lastElement, | ||
| $ | elementList, | ||
| $ | elementTree, | ||
| &$ | parameters | ||
| ) |
Definition at line 1325 of file eztemplatearrayoperator.php.
| eZTemplateArrayOperator::modify | ( | $ | tpl, |
| $ | operatorName, | ||
| $ | operatorParameters, | ||
| $ | rootNamespace, | ||
| $ | currentNamespace, | ||
| &$ | operatorValue, | ||
| $ | namedParameters, | ||
| $ | placement | ||
| ) |
Definition at line 1563 of file eztemplatearrayoperator.php.
See eZTemplateOperator::namedParameterList()
Definition at line 1505 of file eztemplatearrayoperator.php.
Definition at line 1498 of file eztemplatearrayoperator.php.
Returns the operators in this class.
Definition at line 111 of file eztemplatearrayoperator.php.
Definition at line 116 of file eztemplatearrayoperator.php.
| eZTemplateArrayOperator::$ArrayName |
Definition at line 2105 of file eztemplatearrayoperator.php.
| eZTemplateArrayOperator::$HashName |
Definition at line 2106 of file eztemplatearrayoperator.php.
| eZTemplateArrayOperator::$Operators |
Definition at line 2104 of file eztemplatearrayoperator.php.