\WebinoDraw\VarTranslator\OperationFilter

Class Filter

Summary

Methods
Properties
Constants
__construct()
apply()
No public properties found
No constants found
iterateFilterSpec()
callFilter()
$filters
N/A
No private methods found
No private properties found
N/A

Properties

$filters

$filters : \Zend\Filter\FilterPluginManager

Type

\Zend\Filter\FilterPluginManager

Methods

__construct()

__construct(\Zend\Filter\FilterPluginManager  $filters) 

Parameters

\Zend\Filter\FilterPluginManager $filters

apply()

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

Apply functions and filters on variables

Call function if exists else call filter.

Parameters

\WebinoDraw\VarTranslator\Translation $translation

Variables with values to modify

array $spec

Filter options

Returns

$this

iterateFilterSpec()

iterateFilterSpec(array  $spec, mixed  $key, \WebinoDraw\VarTranslator\Translation  $translation) : $this

Parameters

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

Throws

\WebinoDraw\Exception\InvalidInstructionException

Returns

$this

callFilter()

callFilter(string  $filter, mixed  $key, \WebinoDraw\VarTranslator\Translation  $translation, array  $options) : $this

Call ZF filter

Parameters

string $filter
mixed $key
\WebinoDraw\VarTranslator\Translation $translation
array $options

Returns

$this