Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Generic storage class helps to manage global data.
Zend_Registry $_registry = 'null'Registry object provides storage for shared objects.
Detailsstring $_registryClassName = 'Zend_Registry'Class name of the singleton registry object.
Details__construct(
array $array
=
array, integer $flags
=
parent
)
:
Constructs a parent ArrayObject with default ARRAY_AS_PROPS to allow acces as an object
Details_unsetInstance(
)
:
Unset the default registry instance.
Primarily used in tearDown() in unit tests.
Detailsget(
string $index
)
:
mixedgetter method, basically same as offsetGet().
This method can be called from an object of type Zend_Registry, or it can be called statically. In the latter case, it uses the default static instance stored in the class.
DetailsgetInstance(
)
:
Zend_RegistryRetrieves the default registry instance.
Detailsinit(
)
:
voidInitialize the default registry instance.
DetailsisRegistered(
string $index
)
:
booleanReturns TRUE if the $index is a named value in the registry, or FALSE if $index was not found in the registry.
DetailsoffsetExists(
string $index
)
:
Detailsset(
string $index, mixed $value
)
:
voidsetter method, basically same as offsetSet().
This method can be called from an object of type Zend_Registry, or it can be called statically. In the latter case, it uses the default static instance stored in the class.
DetailssetClassName(
string $registryClassName
=
Zend_Registry
)
:
voidSet the class name to use for the default registry instance.
Does not affect the currently initialized instance, it only applies for the next time you instantiate.
DetailssetInstance(
Zend_Registry $registry
)
:
voidSet the default registry instance to a specified instance.
Details