Constants

SERVICE

SERVICE

Draw helper service name

Properties

$eventIdentifier

$eventIdentifier : string

Type

string

$forms

$forms : \Zend\ServiceManager\ServiceLocatorInterface

Type

\Zend\ServiceManager\ServiceLocatorInterface

$formRow

$formRow : \Zend\Form\View\Helper\FormRow

Type

\Zend\Form\View\Helper\FormRow

$formElementErrors

$formElementErrors : \Zend\Form\View\Helper\FormElementErrors

Type

\Zend\Form\View\Helper\FormElementErrors

$formCollection

$formCollection : \Zend\Form\View\Helper\FormCollection

Type

\Zend\Form\View\Helper\FormCollection

$url

$url : \Zend\View\Helper\Url

Type

\Zend\View\Helper\Url

$vars

$vars : array

Type

array

Methods

__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

Provides manipulation over DOM elements

Parameters

\WebinoDraw\Dom\NodeList $nodes

Matched DOM 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\ServiceManager\ServiceLocatorInterface  $forms, \Zend\Form\View\Helper\FormRow  $formRow, \WebinoDraw\Form\View\Helper\FormElement  $formElement, \Zend\Form\View\Helper\FormElementErrors  $formElementErrors, \Zend\Form\View\Helper\FormCollection  $formCollection, \Zend\View\Helper\Url  $url, \WebinoDraw\Instructions\InstructionsRenderer  $instructionsRenderer) 

Parameters

\Zend\ServiceManager\ServiceLocatorInterface $forms
\Zend\Form\View\Helper\FormRow $formRow
\WebinoDraw\Form\View\Helper\FormElement $formElement
\Zend\Form\View\Helper\FormElementErrors $formElementErrors
\Zend\Form\View\Helper\FormCollection $formCollection
\Zend\View\Helper\Url $url
\WebinoDraw\Instructions\InstructionsRenderer $instructionsRenderer

setTranslatorTextDomain()

setTranslatorTextDomain(string  $textDomain = 'default') : $this

Parameters

string $textDomain

Returns

$this

setRenderErrors()

setRenderErrors(boolean  $bool = true) : $this

Parameters

boolean $bool

Returns

$this

trigger()

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

Parameters

array $triggers
\WebinoDraw\Event\DrawEvent $event

Returns

$this

createForm()

createForm(array  $spec) : \Zend\Form\FormInterface

Parameters

array $spec

Throws

\WebinoDraw\Exception\RuntimeException

Returns

\Zend\Form\FormInterface

resolveRouteFormAction()

resolveRouteFormAction(string|array  $spec) : string

Parameters

string|array $spec

Throws

\WebinoDraw\Exception\InvalidArgumentException
\WebinoDraw\Exception\RuntimeException

Returns

string

matchTemplate()

matchTemplate(\WebinoDraw\Dom\NodeList  $nodes, \Zend\Form\FormInterface  $form) 

Parameters

\WebinoDraw\Dom\NodeList $nodes
\Zend\Form\FormInterface $form