Helper for storing and retrieving the root and current view model

package Default
inherited_from \Zend\View\Helper\AbstractHelper

 Methods

Get the current view model

getCurrent() : null | \Zend\View\Model\ModelInterface

Returns

null\Zend\View\Model\ModelInterface

Get the root view model

getRoot() : null | \Zend\View\Model\ModelInterface

Returns

null\Zend\View\Model\ModelInterface

Get the view object

getView() : null | \Zend\View\Renderer\RendererInterface
Inherited
inherited_from \Zend\View\Helper\HelperInterface::getView()

Returns

null\Zend\View\Renderer\RendererInterface

Is a current view model composed?

hasCurrent() : boolean

Returns

boolean

Is a root view model composed?

hasRoot() : boolean

Returns

boolean

Set the current view model

setCurrent(\Zend\View\Model\ModelInterface $model) : \Zend\View\Helper\ViewModel

Parameters

$model

\Zend\View\Model\ModelInterface

Returns

\Zend\View\Helper\ViewModel

Set the root view model

setRoot(\Zend\View\Model\ModelInterface $model) : \Zend\View\Helper\ViewModel

Parameters

$model

\Zend\View\Model\ModelInterface

Returns

\Zend\View\Helper\ViewModel

Set the View object

setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
Inherited
inherited_from \Zend\View\Helper\HelperInterface::setView()

Parameters

$view

\Zend\View\Renderer\RendererInterface

Returns

\Zend\View\Helper\AbstractHelper

 Properties

 

$current

$current : \Zend\View\Model\ModelInterface

Default

 

$root

$root : \Zend\View\Model\ModelInterface

Default

 

View object instance

$view : \Zend\View\Renderer\RendererInterface

Default

null