\WebinoDraw\View\StrategyDrawAjaxHtmlStrategy

Draw matched containers and return the JSON XHTML of matched fragments

Summary

Methods
Properties
Constants
getEvent()
setEvent()
createContainer()
injectResponse()
__construct()
attach()
shouldRespond()
collectModelVariables()
createMarkup()
No public properties found
No constants found
respond()
$event
$eventIdentifier
$draw
N/A
No private methods found
No private properties found
N/A

Properties

$eventIdentifier

$eventIdentifier : string

Type

string

Methods

createContainer()

createContainer(\WebinoDraw\Dom\Document  $dom, string  $xpath) : string

Return XHTML of nodes matched by XPath

Parameters

\WebinoDraw\Dom\Document $dom
string $xpath

Returns

string —

XHTML

injectResponse()

injectResponse(\Zend\View\ViewEvent  $event) 

Parameters

\Zend\View\ViewEvent $event

attach()

attach(\Zend\EventManager\EventManagerInterface  $events, integer  $priority = 1) 

Parameters

\Zend\EventManager\EventManagerInterface $events
integer $priority

shouldRespond()

shouldRespond(\Zend\View\ViewEvent  $event) : boolean

Parameters

\Zend\View\ViewEvent $event

Returns

boolean

collectModelVariables()

collectModelVariables(\Zend\View\Model\ViewModel  $model) : array

Collect all variables from the view model

Parameters

\Zend\View\Model\ViewModel $model

Returns

array

createMarkup()

createMarkup(\WebinoDraw\Dom\Document  $dom, string  $xpath) : array

Return XHTML parts of nodes matched by XPath

Parameters

\WebinoDraw\Dom\Document $dom
string $xpath

Throws

\WebinoDraw\Exception\RuntimeException

Returns

array

respond()

respond(\WebinoDraw\Dom\Document  $dom, string  $xpath) : string

Parameters

\WebinoDraw\Dom\Document $dom
string $xpath

Returns

string