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
Afficher le fichier Open project: fluidtypo3/vhs

Méthodes publiques

Méthode Description
initializeArguments ( ) : void
render ( ) : mixed

Méthodes protégées

Méthode Description
calculateAction ( mixed $a, $b ) : mixed

Method Details

calculateAction() protected méthode

protected calculateAction ( mixed $a, $b ) : mixed
$a mixed
$b
Résultat mixed

initializeArguments() public méthode

public initializeArguments ( ) : void
Résultat void

render() public méthode

public render ( ) : mixed
Résultat mixed