|
eZ Publish
[4.2]
|
Logical operators for creating and manipulating booleans. More...
Public Member Functions | |
| chooseTransformation ($operatorName, &$node, $tpl, &$resourceData, $element, $lastElement, $elementList, $elementTree, &$parameters) | |
| eZTemplateLogicOperator () | |
| getValueCount ($val) | |
| logicalComparisonTransformation ($operatorName, &$node, $tpl, &$resourceData, $element, $lastElement, $elementList, $elementTree, &$parameters) | |
| modify ($tpl, $operatorName, $operatorParameters, $rootNamespace, $currentNamespace, &$value, $namedParameters, $placement) | |
| namedParameterList () | |
| namedParameterPerOperator () | |
| negateTransformation ($operatorName, &$node, $tpl, &$resourceData, $element, $lastElement, $elementList, $elementTree, &$parameters) | |
| operatorCompiledStaticData ($operatorName) | |
| operatorList () | |
| operatorTemplateHints () | |
| trueFalseTransformation ($operatorName, &$node, $tpl, &$resourceData, $element, $lastElement, $elementList, $elementTree, &$parameters) | |
Public Attributes | |
| $AndName | |
| The "and" name. | |
| $ChooseName | |
| The "choose" name. | |
| $EqName | |
| The "equal" name. | |
| $FalseName | |
| The "false" name. | |
| $GeName | |
| The "greater than or equal" name. | |
| $GtName | |
| The "greater than" name. | |
| $LeName | |
| The "less than or equal" name. | |
| $LtName | |
| The "less than" name. | |
| $NeName | |
| The "not equal" name. | |
| $NotName | |
| The "not" name. | |
| $NullName | |
| The "null" name. | |
| $Operators | |
| The array of operators. | |
| $OrName | |
| The "or" name. | |
| $TrueName | |
| The "true" name. | |
Logical operators for creating and manipulating booleans.
This class adds powerful template handling by enabling logical operators which alter the output of templates from input values.
How counts are interpreted:
Data is considered null (or false) if the data count is 0 (see above) or the data is really null (is_null). Data is considered true if it is not null.
The supported operators are:
Definition at line 87 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::chooseTransformation | ( | $ | operatorName, |
| &$ | node, | ||
| $ | tpl, | ||
| &$ | resourceData, | ||
| $ | element, | ||
| $ | lastElement, | ||
| $ | elementList, | ||
| $ | elementTree, | ||
| &$ | parameters | ||
| ) |
Definition at line 536 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::eZTemplateLogicOperator | ( | ) |
Initializes the operator class with the various operator names.
Definition at line 92 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::getValueCount | ( | $ | val | ) |
Returns the 'count' value as described in the introduction or 'false' in case of an unsupported type
Definition at line 616 of file eztemplatelogicoperator.php.
Referenced by modify().
| eZTemplateLogicOperator::logicalComparisonTransformation | ( | $ | operatorName, |
| &$ | node, | ||
| $ | tpl, | ||
| &$ | resourceData, | ||
| $ | element, | ||
| $ | lastElement, | ||
| $ | elementList, | ||
| $ | elementTree, | ||
| &$ | parameters | ||
| ) |
Definition at line 256 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::modify | ( | $ | tpl, |
| $ | operatorName, | ||
| $ | operatorParameters, | ||
| $ | rootNamespace, | ||
| $ | currentNamespace, | ||
| &$ | value, | ||
| $ | namedParameters, | ||
| $ | placement | ||
| ) |
Examines the input value and outputs a boolean value. See class documentation for more information.
Definition at line 651 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::namedParameterList | ( | ) |
See eZTemplateOperator::namedParameterList
Definition at line 239 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::namedParameterPerOperator | ( | ) |
Definition at line 117 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::negateTransformation | ( | $ | operatorName, |
| &$ | node, | ||
| $ | tpl, | ||
| &$ | resourceData, | ||
| $ | element, | ||
| $ | lastElement, | ||
| $ | elementList, | ||
| $ | elementTree, | ||
| &$ | parameters | ||
| ) |
Definition at line 500 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::operatorCompiledStaticData | ( | $ | operatorName | ) |
Definition at line 220 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::operatorList | ( | ) |
Returns the operators in this class.
Definition at line 109 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::operatorTemplateHints | ( | ) |
Definition at line 122 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::trueFalseTransformation | ( | $ | operatorName, |
| &$ | node, | ||
| $ | tpl, | ||
| &$ | resourceData, | ||
| $ | element, | ||
| $ | lastElement, | ||
| $ | elementList, | ||
| $ | elementTree, | ||
| &$ | parameters | ||
| ) |
Definition at line 519 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::$AndName |
The "and" name.
Definition at line 907 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::$ChooseName |
The "choose" name.
Definition at line 913 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::$EqName |
The "equal" name.
Definition at line 897 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::$FalseName |
The "false" name.
Definition at line 911 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::$GeName |
The "greater than or equal" name.
Definition at line 895 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::$GtName |
The "greater than" name.
Definition at line 891 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::$LeName |
The "less than or equal" name.
Definition at line 893 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::$LtName |
The "less than" name.
Definition at line 889 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::$NeName |
The "not equal" name.
Definition at line 899 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::$NotName |
The "not" name.
Definition at line 903 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::$NullName |
The "null" name.
Definition at line 901 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::$Operators |
The array of operators.
Definition at line 887 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::$OrName |
The "or" name.
Definition at line 905 of file eztemplatelogicoperator.php.
| eZTemplateLogicOperator::$TrueName |
The "true" name.
Definition at line 909 of file eztemplatelogicoperator.php.