eZ Publish  [trunk]
eZTemplateArithmeticOperator Class Reference

The class eZTemplateArithmeticOperator does. More...

List of all members.

Public Member Functions

 basicTransformation ($operatorName, &$node, $tpl, &$resourceData, $element, $lastElement, $elementList, $elementTree, &$parameters)
 castTransformation ($operatorName, &$node, $tpl, &$resourceData, $element, $lastElement, $elementList, $elementTree, &$parameters)
 decIncTransformation ($operatorName, &$node, $tpl, &$resourceData, $element, $lastElement, $elementList, $elementTree, &$parameters)
 eZTemplateArithmeticOperator ()
 minMaxTransformation ($operatorName, &$node, $tpl, &$resourceData, $element, $lastElement, $elementList, $elementTree, &$parameters)
 modify ($tpl, $operatorName, $operatorParameters, $rootNamespace, $currentNamespace, &$operatorValue, $namedParameters, $placement)
 modTransformation ($operatorName, &$node, $tpl, &$resourceData, $element, $lastElement, $elementList, $elementTree, &$parameters)
 namedParameterList ()
 namedParameterPerOperator ()
 operatorList ()
 operatorTemplateHints ()
 randTransformation ($operatorName, &$node, $tpl, &$resourceData, $element, $lastElement, $elementList, $elementTree, &$parameters)
 romanTransformation ($operatorName, &$node, $tpl, &$resourceData, $element, $lastElement, $elementList, $elementTree, &$parameters)
 roundTransformation ($operatorName, &$node, $tpl, &$resourceData, $element, $lastElement, $elementList, $elementTree, &$parameters)

Public Attributes

 $AbsName
 $CeilName
 $CountName
 $DecName
 $DivName
 $FloatName
 $FloorName
 $IncName
 $IntName
 $MaxName
 $MinName
 $ModName
 $MulName
 $Operators
 $RandName
 $RomanName
 $RoundName
 $SubName
 $SumName

Private Member Functions

 buildRoman ($value)
 numericalValue ($mixedValue)

Detailed Description

The class eZTemplateArithmeticOperator does.

sum sub inc dec

div mod mul

max min

abs ceil floor round

int float

count

Definition at line 39 of file eztemplatearithmeticoperator.php.


Member Function Documentation

eZTemplateArithmeticOperator::basicTransformation ( operatorName,
&$  node,
tpl,
&$  resourceData,
element,
lastElement,
elementList,
elementTree,
&$  parameters 
)

Definition at line 204 of file eztemplatearithmeticoperator.php.

Recursive function for calculating roman numeral from integer

Parameters:
integervalue
Returns:
next chars for for current value

Definition at line 825 of file eztemplatearithmeticoperator.php.

Referenced by modify(), and romanTransformation().

eZTemplateArithmeticOperator::castTransformation ( operatorName,
&$  node,
tpl,
&$  resourceData,
element,
lastElement,
elementList,
elementTree,
&$  parameters 
)

Definition at line 462 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::decIncTransformation ( operatorName,
&$  node,
tpl,
&$  resourceData,
element,
lastElement,
elementList,
elementTree,
&$  parameters 
)

Definition at line 438 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::minMaxTransformation ( operatorName,
&$  node,
tpl,
&$  resourceData,
element,
lastElement,
elementList,
elementTree,
&$  parameters 
)

Definition at line 341 of file eztemplatearithmeticoperator.php.

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

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

Definition at line 580 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::modTransformation ( operatorName,
&$  node,
tpl,
&$  resourceData,
element,
lastElement,
elementList,
elementTree,
&$  parameters 
)

Definition at line 391 of file eztemplatearithmeticoperator.php.

Returns:
true to tell the template engine that the parameter list exists per operator type.

Definition at line 533 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::numericalValue ( mixedValue) [private]

This function adds too much complexity, don't use it anymore

Definition at line 558 of file eztemplatearithmeticoperator.php.

Returns the operators in this class.

Definition at line 65 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::randTransformation ( operatorName,
&$  node,
tpl,
&$  resourceData,
element,
lastElement,
elementList,
elementTree,
&$  parameters 
)

Definition at line 484 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::romanTransformation ( operatorName,
&$  node,
tpl,
&$  resourceData,
element,
lastElement,
elementList,
elementTree,
&$  parameters 
)

Definition at line 511 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::roundTransformation ( operatorName,
&$  node,
tpl,
&$  resourceData,
element,
lastElement,
elementList,
elementTree,
&$  parameters 
)

Definition at line 414 of file eztemplatearithmeticoperator.php.


Member Data Documentation

eZTemplateArithmeticOperator::$AbsName

Definition at line 887 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::$CeilName

Definition at line 888 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::$CountName

Definition at line 895 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::$DecName

Definition at line 878 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::$DivName

Definition at line 880 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::$FloatName

Definition at line 893 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::$FloorName

Definition at line 889 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::$IncName

Definition at line 877 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::$IntName

Definition at line 892 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::$MaxName

Definition at line 884 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::$MinName

Definition at line 885 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::$ModName

Definition at line 881 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::$MulName

Definition at line 882 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::$Operators

Definition at line 874 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::$RandName

Definition at line 899 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::$RomanName

Definition at line 897 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::$RoundName

Definition at line 890 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::$SubName

Definition at line 876 of file eztemplatearithmeticoperator.php.

eZTemplateArithmeticOperator::$SumName

Definition at line 875 of file eztemplatearithmeticoperator.php.


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