Registry for placeholder containers

 Methods

Does a particular container exist?

containerExists(string $key) : bool

Parameters

$key

string

Returns

bool

createContainer

createContainer(string $key, array $value) : \Zend\View\Helper\Placeholder\Container\AbstractContainer

Parameters

$key

string

$value

array

Returns

Delete a container

deleteContainer(string $key) : bool

Parameters

$key

string

Returns

bool

Retrieve a placeholder container

getContainer(string $key) : \Zend\View\Helper\Placeholder\Container\AbstractContainer

Retrieve the container class

getContainerClass() : string

Returns

string

Retrieve or create registry instance

getRegistry() : \Zend\View\Helper\Placeholder\Registry

Set the container for an item in the registry

setContainer(string $key, \Zend\View\Helper\Placeholder\Container\AbstractContainer $container) : \Zend\View\Helper\Placeholder\Registry

Set the container class to use

setContainerClass(string $name) : \Zend\View\Helper\Placeholder\Registry

Unset the singleton

unsetRegistry() : void

Primarily useful for testing purposes; sets $instance to null.

 Properties

 

Default container class

$containerClass : string

 

<p>Singleton instance</p>

$instance : \Zend\View\Helper\Placeholder\Registry

 

Placeholder containers

$items : array