Fully Qualified Name: | Zend\View\Helper\Placeholder |
Extends: | AbstractHelper |
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.
Name | Description | Defined By |
---|---|---|
__invoke() | Placeholder helper | Placeholder |
clearContainers() | Remove all containers | Placeholder |
containerExists() | Does a particular container exist? | Placeholder |
createContainer() | createContainer | Placeholder |
deleteContainer() | Delete a specific container by name | Placeholder |
getContainer() | Retrieve a placeholder container | Placeholder |
getView() | Get the view object | AbstractHelper |
setView() | Set the View object | AbstractHelper |
Placeholder helper
Parameter Name | Type | Description |
---|---|---|
$name | string |
Returns: \Placeholder\Container\AbstractContainer
Remove all containers
Returns: void
Does a particular container exist?
Parameter Name | Type | Description |
---|---|---|
$key | string |
Returns: bool
createContainer
Parameter Name | Type | Description |
---|---|---|
$key | string | |
$value | array |
Returns: \Container\AbstractContainer
Delete a specific container by name
Parameter Name | Type | Description |
---|---|---|
$key | string |
Returns: void
Retrieve a placeholder container
Parameter Name | Type | Description |
---|---|---|
$key | string |
Returns: \Container\AbstractContainer
Get the view object
Returns: null|\Renderer
Set the View object
Parameter Name | Type | Description |
---|---|---|
$view | \Renderer |
Returns: \AbstractHelper