eZPublishCommunityProject(LegacyStack)  2013.6
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)
 

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

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
eZTemplateArithmeticOperator::$CeilName
eZTemplateArithmeticOperator::$CountName
eZTemplateArithmeticOperator::$DecName
eZTemplateArithmeticOperator::$DivName
eZTemplateArithmeticOperator::$FloatName
eZTemplateArithmeticOperator::$FloorName
eZTemplateArithmeticOperator::$IncName
eZTemplateArithmeticOperator::$IntName

Referenced by castTransformation().

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

Referenced by operatorList().

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

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