Registry for placeholder containers

package Default

 Methods

Does a particular container exist?

containerExists(string $key) : boolean

Parameters

$key

string

Returns

boolean

createContainer

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

Parameters

$key

string

$value

array

Returns

\Zend\View\Helper\Placeholder\Container\AbstractContainer

Delete a container

deleteContainer(string $key) : boolean

Parameters

$key

string

Returns

boolean

Retrieve a placeholder container

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

Parameters

$key

string

Returns

\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
Static

Returns

\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

Parameters

$key

string

$container

\Zend\View\Helper\Placeholder\Container\AbstractContainer

Returns

\Zend\View\Helper\Placeholder\Registry

Set the container class to use

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

Parameters

$name

string

Exceptions

\Zend\View\Exception\InvalidArgumentException
\Zend\View\Exception\DomainException

Returns

\Zend\View\Helper\Placeholder\Registry

Unset the singleton

unsetRegistry() : void
Static

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

 Properties

 

Default container class

$containerClass : string

Default

'Zend\View\Helper\Placeholder\Container'
 

Singleton instance

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

Default

Static
 

Placeholder containers

$items : array

Default

array()