Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
ViewModel Class Reference

Helper for storing and retrieving the root and current view model. More...

Public Member Functions

 setCurrent (Model $model)
 Set the current view model.
 
 getCurrent ()
 Get the current view model.
 
 hasCurrent ()
 Is a current view model composed?
 
 setRoot (Model $model)
 Set the root view model.
 
 getRoot ()
 Get the root view model.
 
 hasRoot ()
 Is a root view model composed?
 
- Public Member Functions inherited from AbstractHelper
 setView (Renderer $view)
 Set the View object.
 
 getView ()
 Get the view object.
 

Protected Attributes

 $current
 
 $root
 
- Protected Attributes inherited from AbstractHelper
 $view = null
 

Detailed Description

Helper for storing and retrieving the root and current view model.

Member Function Documentation

getCurrent ( )

Get the current view model.

Returns
null|Model
getRoot ( )

Get the root view model.

Returns
null|Model
hasCurrent ( )

Is a current view model composed?

Returns
bool
hasRoot ( )

Is a root view model composed?

Returns
bool
setCurrent ( Model  $model)

Set the current view model.

Parameters
Model$model
Returns
ViewModel
setRoot ( Model  $model)

Set the root view model.

Parameters
Model$model
Returns
ViewModel

Member Data Documentation

$current
protected
$root
protected