Constants

SERVICE

SERVICE

Draw helper service name

Properties

$escapeHtml

$escapeHtml : \Zend\View\Helper\EscapeHtml

Type

\Zend\View\Helper\EscapeHtml

$eventIdentifier

$eventIdentifier : string

Type

string

$translator

$translator : \Zend\I18n\Translator\TranslatorInterface

Type

\Zend\I18n\Translator\TranslatorInterface

$vars

$vars : array

Type

array

Methods

getEscapeHtml()

getEscapeHtml() : \Zend\View\Helper\EscapeHtml

Returns

\Zend\View\Helper\EscapeHtml

setEscapeHtml()

setEscapeHtml(\Zend\View\Helper\EscapeHtml  $escapeHtml) : $this

Parameters

\Zend\View\Helper\EscapeHtml $escapeHtml

Returns

$this

__invoke()

__invoke(\WebinoDraw\Dom\NodeList  $nodes, array  $spec) 

Parameters

\WebinoDraw\Dom\NodeList $nodes

Matched DOM nodes

array $spec

getVars()

getVars() : array

Returns

array

setVars()

setVars(array  $vars) : $this

Parameters

array $vars

Returns

$this

setVarTranslation()

setVarTranslation(\ArrayAccess|null  $varTranslation = null) : $this

Parameters

\ArrayAccess|null $varTranslation

Returns

$this

translate()

translate(string|array  $subject) : mixed

Parameters

string|array $subject

Returns

mixed

translateValue()

translateValue(string  $value, \WebinoDraw\VarTranslator\Translation  $varTranslation, array  $spec) : string

Parameters

string $value
\WebinoDraw\VarTranslator\Translation $varTranslation
array $spec

Returns

string

drawNodes()

drawNodes(\WebinoDraw\Dom\NodeList  $nodes, array  $spec) : $this

Parameters

\WebinoDraw\Dom\NodeList $nodes
array $spec

Returns

$this

manipulateNodes()

manipulateNodes(\WebinoDraw\Dom\NodeList  $nodes, array  $spec, \ArrayAccess  $translation) : $this

Manipulate nodes

Parameters

\WebinoDraw\Dom\NodeList $nodes
array $spec
\ArrayAccess $translation

Returns

$this

__construct()

__construct(\Zend\I18n\Translator\TranslatorInterface|object  $translator) 

Parameters

\Zend\I18n\Translator\TranslatorInterface|object $translator

setTranslator()

setTranslator(\Zend\I18n\Translator\TranslatorInterface  $translator) : $this

Parameters

\Zend\I18n\Translator\TranslatorInterface $translator

Returns

$this

trigger()

trigger(array  $triggers, \WebinoDraw\Event\DrawEvent  $event) : $this

Parameters

array $triggers
\WebinoDraw\Event\DrawEvent $event

Returns

$this

translateAttribNodes()

translateAttribNodes(\WebinoDraw\Dom\NodeList  $nodes, string  $textDomain, string  $locale) : array

Parameters

\WebinoDraw\Dom\NodeList $nodes
string $textDomain
string $locale

Returns

array

resolveTextDomain()

resolveTextDomain(array  $spec) : string

Parameters

array $spec

Returns

string

resolveLocale()

resolveLocale(array  $spec) : string

Parameters

array $spec

Returns

string

resetVarTranslation()

resetVarTranslation(array  $spec) : $this

Parameters

array $spec

Returns

$this