eZPublish  3.8
eZTemplateArithmeticOperator Class Reference

The class eZTemplateArithmeticOperator does. More...

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)
 

Private Member Functions

 buildRoman ($value)
 
 numericalValue ($mixedValue)
 

Private Attributes

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

Detailed Description

The class eZTemplateArithmeticOperator does.

sum sub inc dec

div mod mul

max min

abs ceil floor round

int float

count

Member Function Documentation

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

Recursive function for calculating roman numeral from integer

Parameters
integervalue
Returns
next chars for for current value

Referenced by modify(), and romanTransformation().

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

Constructor

eZTemplateArithmeticOperator::minMaxTransformation (   $operatorName,
$node,
$tpl,
$resourceData,
$element,
$lastElement,
$elementList,
$elementTree,
$parameters 
)
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.

eZTemplateArithmeticOperator::modTransformation (   $operatorName,
$node,
$tpl,
$resourceData,
$element,
$lastElement,
$elementList,
$elementTree,
$parameters 
)
eZTemplateArithmeticOperator::namedParameterList ( )
eZTemplateArithmeticOperator::namedParameterPerOperator ( )
Returns
true to tell the template engine that the parameter list exists per operator type.
eZTemplateArithmeticOperator::numericalValue (   $mixedValue)
private

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

& eZTemplateArithmeticOperator::operatorList ( )

Returns the operators in this class.

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

Member Data Documentation

eZTemplateArithmeticOperator::$AbsName
private
eZTemplateArithmeticOperator::$CeilName
private
eZTemplateArithmeticOperator::$CountName
private
eZTemplateArithmeticOperator::$DecName
private
eZTemplateArithmeticOperator::$DivName
private
eZTemplateArithmeticOperator::$FloatName
private
eZTemplateArithmeticOperator::$FloorName
private
eZTemplateArithmeticOperator::$IncName
private
eZTemplateArithmeticOperator::$IntName
private

Referenced by castTransformation().

eZTemplateArithmeticOperator::$MaxName
private
eZTemplateArithmeticOperator::$MinName
private
eZTemplateArithmeticOperator::$ModName
private
eZTemplateArithmeticOperator::$MulName
private
eZTemplateArithmeticOperator::$Operators
private

Referenced by operatorList().

eZTemplateArithmeticOperator::$RandName
private
eZTemplateArithmeticOperator::$RomanName
private
eZTemplateArithmeticOperator::$RoundName
private
eZTemplateArithmeticOperator::$SubName
private
eZTemplateArithmeticOperator::$SumName
private

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