$filter
$filter : \WebinoDraw\VarTranslator\Operation\Filter
Replace variables in array with values in the other array.
The first array is a specification with custom options with {$variable} in values.
The second array contains data by variable names like keys. Those {$variable} will be substituted with data.
$filter : \WebinoDraw\VarTranslator\Operation\Filter
$helper : \WebinoDraw\VarTranslator\Operation\Helper
$onVar : \WebinoDraw\VarTranslator\Operation\OnVar
$translation : \WebinoDraw\VarTranslator\Translation
Global translation
__construct(\WebinoDraw\VarTranslator\Operation\Filter $filter, \WebinoDraw\VarTranslator\Operation\Helper $helper, \WebinoDraw\VarTranslator\Operation\OnVar $onVar)
\WebinoDraw\VarTranslator\Operation\Filter | $filter | |
\WebinoDraw\VarTranslator\Operation\Helper | $helper | |
\WebinoDraw\VarTranslator\Operation\OnVar | $onVar |
getTranslation() : \WebinoDraw\VarTranslator\Translation
Get global translation
setTranslation(\WebinoDraw\VarTranslator\Translation $translation) : $this
Set global translation
\WebinoDraw\VarTranslator\Translation | $translation |
apply(\WebinoDraw\VarTranslator\Translation $translation, array $spec) : $this
\WebinoDraw\VarTranslator\Translation | $translation | |
array | $spec |
applyOnVar(\WebinoDraw\VarTranslator\Translation $varTranslation, array $spec, callable $callback) : $this
Apply variable logic
\WebinoDraw\VarTranslator\Translation | $varTranslation | |
array | $spec | |
callable | $callback |
createTranslation(array $vars) : \WebinoDraw\VarTranslator\Translation
array | $vars |