\WebinoDraw\VarTranslator\OperationHelper

Class Helper

Summary

Methods
Properties
Constants
__construct()
apply()
No public properties found
No constants found
iterateHelperSpec()
callCallableHelper()
callHelper()
$helpers
N/A
No private methods found
No private properties found
N/A

Properties

$helpers

$helpers : \Zend\View\HelperPluginManager

Type

\Zend\View\HelperPluginManager

Methods

__construct()

__construct(\Zend\View\HelperPluginManager  $helpers) 

Parameters

\Zend\View\HelperPluginManager $helpers

apply()

apply(\WebinoDraw\VarTranslator\Translation  $translation, array  $spec) : $this

Apply functions and view helpers on variables

Call function if exists else call helper.

Parameters

\WebinoDraw\VarTranslator\Translation $translation

Variables with values to modify

array $spec

Helper options

Returns

$this

iterateHelperSpec()

iterateHelperSpec(array  $spec, mixed  $key, \WebinoDraw\VarTranslator\Translation  $translation, \ArrayObject  $results) : $this

Parameters

array $spec
mixed $key
\WebinoDraw\VarTranslator\Translation $translation
\ArrayObject $results

Throws

\WebinoDraw\Exception\InvalidInstructionException

Returns

$this

callCallableHelper()

callCallableHelper(mixed  $helper, mixed  $key, \WebinoDraw\VarTranslator\Translation  $translation, \ArrayObject  $results, array  $options) : boolean

Parameters

mixed $helper
mixed $key
\WebinoDraw\VarTranslator\Translation $translation
\ArrayObject $results
array $options

Throws

\WebinoDraw\Exception\InvalidInstructionException

Returns

boolean

callHelper()

callHelper(string  $helper, mixed  $key, \WebinoDraw\VarTranslator\Translation  $translation, \ArrayObject  $results, array  $options, boolean  $joinResult) : $this

Call ZF helper

Parameters

string $helper
mixed $key
\WebinoDraw\VarTranslator\Translation $translation
\ArrayObject $results
array $options
boolean $joinResult

Returns

$this