Zend Framework
1.12
|
Public Member Functions | |
__construct ($array=array(), $flags=parent::ARRAY_AS_PROPS) | |
Constructs a parent ArrayObject with default ARRAY_AS_PROPS to allow acces as an object. | |
offsetExists ($index) | |
Static Public Member Functions | |
static | getInstance () |
Retrieves the default registry instance. | |
static | setInstance (Zend_Registry $registry) |
Set the default registry instance to a specified instance. | |
static | setClassName ($registryClassName= 'Zend_Registry') |
Set the class name to use for the default registry instance. | |
static | _unsetInstance () |
Unset the default registry instance. | |
static | get ($index) |
getter method, basically same as offsetGet(). | |
static | set ($index, $value) |
setter method, basically same as offsetSet(). | |
static | isRegistered ($index) |
Returns TRUE if the $index is a named value in the registry, or FALSE if $index was not found in the registry. | |
Static Protected Member Functions | |
static | init () |
Initialize the default registry instance. | |
__construct | ( | $array = array() , |
|
$flags = parent::ARRAY_AS_PROPS |
|||
) |
Constructs a parent ArrayObject with default ARRAY_AS_PROPS to allow acces as an object.
array | $array | data array |
integer | $flags | ArrayObject flags |
|
static |
Unset the default registry instance.
Primarily used in tearDown() in unit tests.
|
static |
getter 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.
string | $index | - get the value associated with $index |
Zend_Exception | if no entry is registerd for $index. |
|
static |
Retrieves the default registry instance.
|
staticprotected |
Initialize the default registry instance.
|
static |
Returns TRUE if the $index is a named value in the registry, or FALSE if $index was not found in the registry.
string | $index |
offsetExists | ( | $index | ) |
|
static |
setter 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.
string | $index | The location in the ArrayObject in which to store the value. |
mixed | $value | The object to store in the ArrayObject. |
|
static |
Set 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.
string | $registryClassName |
Zend_Exception | if the registry is initialized or if the class name is not valid. |
|
static |
Set the default registry instance to a specified instance.
Zend_Registry | $registry | An object instance of type Zend_Registry, or a subclass. |
Zend_Exception | if registry is already initialized. |