Class ViewModel

Summary

Fully Qualified Name: Zend\View\Helper\ViewModel
Extends: AbstractHelper

Description

Helper for storing and retrieving the root and current view model

Methods

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

Method Details

getCurrent()

Get the current view model

Returns: null|\Model

getRoot()

Get the root view model

Returns: null|\Model

getView()

Get the view object

Returns: null|\Renderer

hasCurrent()

Is a current view model composed?

Returns: bool

hasRoot()

Is a root view model composed?

Returns: bool

setCurrent()

Set the current view model

Parameter Name Type Description
$model \Model

Returns: \ViewModel

setRoot()

Set the root view model

Parameter Name Type Description
$model \Model

Returns: \ViewModel

setView()

Set the View object

Parameter Name Type Description
$view \Renderer

Returns: \AbstractHelper

Top