Class Registry

Summary

Fully Qualified Name: Zend\View\Helper\Placeholder\Registry

Description

Registry for placeholder containers

Methods

Name Description Defined By
containerExists() Does a particular container exist? Registry
createContainer() createContainer Registry
deleteContainer() Delete a container Registry
getContainer() Retrieve a placeholder container Registry
getContainerClass() Retrieve the container class Registry
getRegistry() Retrieve or create registry instance Registry
setContainer() Set the container for an item in the registry Registry
setContainerClass() Set the container class to use Registry
unsetRegistry() Unset the singleton Registry

Method Details

containerExists()

Does a particular container exist?

Parameter Name Type Description
$key string

Returns: bool

createContainer()

createContainer

Parameter Name Type Description
$key string
$value array

Returns: \Container\AbstractContainer

deleteContainer()

Delete a container

Parameter Name Type Description
$key string

Returns: bool

getContainer()

Retrieve a placeholder container

Parameter Name Type Description
$key string

Returns: \Container\AbstractContainer

getContainerClass()

Retrieve the container class

Returns: string

getRegistry()

Retrieve or create registry instance

Returns: \Registry

setContainer()

Set the container for an item in the registry

Parameter Name Type Description
$key string
$container \Container\AbstractContainer

Returns: \Registry

setContainerClass()

Set the container class to use

Parameter Name Type Description
$name string

Returns: \Registry

unsetRegistry()

Unset the singleton

Primarily useful for testing purposes; sets {@link $instance} to null.

Returns: void

Top