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

Helper for passing data between otherwise segregated Views. More...

Public Member Functions

 __invoke ($name=null)
 Placeholder helper.
 
 createContainer ($key, array $value=[])
 createContainer
 
 getContainer ($key)
 Retrieve a placeholder container.
 
 containerExists ($key)
 Does a particular container exist?
 
- Public Member Functions inherited from AbstractHelper
 setView (Renderer $view)
 Set the View object.
 
 getView ()
 Get the view object.
 

Protected Attributes

 $items = []
 
 $containerClass = 'Zend\View\Helper\Placeholder\Container'
 
- Protected Attributes inherited from AbstractHelper
 $view = null
 

Detailed Description

Helper for passing data between otherwise segregated Views.

It's called Placeholder to make its typical usage obvious, but can be used just as easily for non-Placeholder things. That said, the support for this is only guaranteed to effect subsequently rendered templates, and of course Layouts.

Member Function Documentation

__invoke (   $name = null)

Placeholder helper.

Parameters
string$name
Exceptions
InvalidArgumentException
Returns
Placeholder
containerExists (   $key)

Does a particular container exist?

Parameters
string$key
Returns
bool
createContainer (   $key,
array  $value = [] 
)

createContainer

Parameters
string$key
array$value
Returns
Container
getContainer (   $key)

Retrieve a placeholder container.

Parameters
string$key
Returns
Container

Member Data Documentation

$containerClass = 'Zend\View\Helper\Placeholder\Container'
protected
$items = []
protected