Fully Qualified Name: | Zend\View\Helper\ViewModel |
Extends: | AbstractHelper |
Helper for storing and retrieving the root and current view model
Name | Description | Defined By |
---|---|---|
getCurrent() | Get the current view model | ViewModel |
getRoot() | Get the root view model | ViewModel |
getView() | Get the view object | AbstractHelper |
hasCurrent() | Is a current view model composed? | ViewModel |
hasRoot() | Is a root view model composed? | ViewModel |
setCurrent() | Set the current view model | ViewModel |
setRoot() | Set the root view model | ViewModel |
setView() | Set the View object | AbstractHelper |
Get the current view model
Returns: null|\Model
Get the root view model
Returns: null|\Model
Get the view object
Returns: null|\Renderer
Is a current view model composed?
Returns: bool
Is a root view model composed?
Returns: bool
Set the current view model
Parameter Name | Type | Description |
---|---|---|
$model | \Model |
Returns: \ViewModel
Set the root view model
Parameter Name | Type | Description |
---|---|---|
$model | \Model |
Returns: \ViewModel
Set the View object
Parameter Name | Type | Description |
---|---|---|
$view | \Renderer |
Returns: \AbstractHelper