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

View helper for retrieving layout object. More...

Public Member Functions

 __invoke ($template=null)
 Set layout template or retrieve "layout" view model.
 
 getLayout ()
 Get layout template.
 
 setTemplate ($template)
 Set layout template.
 
- Public Member Functions inherited from AbstractHelper
 setView (Renderer $view)
 Set the View object.
 
 getView ()
 Get the view object.
 

Protected Member Functions

 getRoot ()
 Get the root view model.
 
 getViewModelHelper ()
 Retrieve the view model helper.
 

Protected Attributes

 $viewModelHelper
 
- Protected Attributes inherited from AbstractHelper
 $view = null
 

Detailed Description

View helper for retrieving layout object.

Member Function Documentation

__invoke (   $template = null)

Set layout template or retrieve "layout" view model.

If no arguments are given, grabs the "root" or "layout" view model. Otherwise, attempts to set the template for that view model.

Parameters
null | string$template
Returns
Layout
getLayout ( )

Get layout template.

Returns
string
getRoot ( )
protected

Get the root view model.

Exceptions
Exception\RuntimeException
Returns
null|Model
getViewModelHelper ( )
protected

Retrieve the view model helper.

Returns
ViewModel
setTemplate (   $template)

Set layout template.

Parameters
string$template
Returns
Layout

Member Data Documentation

$viewModelHelper
protected