Helper for storing and retrieving the root and current view model

package Zend_View
subpackage Helper

 Methods

Get the current view model

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

Get the root view model

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

Get the view object

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

inherited_from \Zend\View\Helper\AbstractHelper::getView()

Returns

Is a current view model composed?

hasCurrent() : bool

Returns

bool

Is a root view model composed?

hasRoot() : bool

Returns

bool

Set the current view model

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

Set the root view model

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

Set the View object

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

inherited_from \Zend\View\Helper\AbstractHelper::setView()

Parameters

Returns

 Properties

 

$current

$current : \Zend\View\Model\ModelInterface

   

View object

$view : \Zend\View\Renderer\RendererInterface
Inherited

inherited_from \Zend\View\Helper\AbstractHelper::$$view