addRenderingStrategy()
addResponseStrategy()
getEventManager()
getRequest()
getResponse()
render()
setEventManager()
setRequest()
setResponse()
getEvent()
renderChildren()
$events
$request
$response
addRenderingStrategy(\Zend\View\callable $callable, int $priority) : \Zend\View\View
Expects a callable. Strategies should accept a ViewEvent object, and should return a Renderer instance if the strategy is selected.
Internally, the callable provided will be subscribed to the "renderer" event, at the priority specified.
\Zend\View\callable
int
addResponseStrategy(\Zend\View\callable $callable, int $priority) : \Zend\View\View
Expects a callable. Strategies should accept a ViewEvent object. The return value will be ignored.
Typical usages for a response strategy are to populate the Response object.
Internally, the callable provided will be subscribed to the "response" event, at the priority specified.
\Zend\View\callable
int
render(\Zend\View\Model\ModelInterface $model) : void
Internally, the following workflow is used:
triggers | renderer(ViewEvent) |
---|---|
triggers | response(ViewEvent) |
\Zend\View\Exception\RuntimeException |
---|
setEventManager(\Zend\EventManager\EventManagerInterface $events) : \Zend\View\View
renderChildren(\Zend\View\Model\ModelInterface $model) : void