PHP Class FluidTYPO3\Vhs\ViewHelpers\Math\AverageViewHelper

Performs average across an array. If $a is an array and $b is an array, each member of $a is averaged against the same member in $b. If $a is an array and $b is a number, each member of $a is averaged agained $b. If $a is an array this array is averaged to one number. If $a is a number and $b is not provided or NULL, $a is gracefully returned as an average value of itself.
Inheritance: extends AbstractMultipleMathViewHelper
Datei anzeigen Open project: fluidtypo3/vhs

Public Methods

Method Description
initializeArguments ( ) : void
render ( ) : mixed

Protected Methods

Method Description
calculateAction ( mixed $a, $b ) : mixed

Method Details

calculateAction() protected method

protected calculateAction ( mixed $a, $b ) : mixed
$a mixed
$b
return mixed

initializeArguments() public method

public initializeArguments ( ) : void
return void

render() public method

public render ( ) : mixed
return mixed