Public Member Functions | |
__construct ($array=array(), $flags=parent::ARRAY_AS_PROPS) | |
offsetExists ($index) | |
Static Public Member Functions | |
static | getInstance () |
static | setInstance (Zend_Registry $registry) |
static | setClassName ($registryClassName= 'Zend_Registry') |
static | _unsetInstance () |
static | get ($index) |
static | set ($index, $value) |
static | isRegistered ($index) |
Static Protected Member Functions | |
static | init () |
Definition at line 30 of file Registry.php.
__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 |
Definition at line 193 of file Registry.php.
static _unsetInstance | ( | ) | [static] |
Unset the default registry instance. Primarily used in tearDown() in unit tests.
Definition at line 125 of file Registry.php.
static get | ( | $ | index ) | [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. |
Definition at line 141 of file Registry.php.
static getInstance | ( | ) | [static] |
Retrieves the default registry instance.
Definition at line 49 of file Registry.php.
static init | ( | ) | [static, protected] |
static isRegistered | ( | $ | index ) | [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 |
Definition at line 178 of file Registry.php.
offsetExists | ( | $ | index ) |
string | $index |
Workaround for http://bugs.php.net/bug.php?id=40442 (ZF-960).
Definition at line 204 of file Registry.php.
static set | ( | $ | index, |
$ | value | ||
) | [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. |
Definition at line 165 of file Registry.php.
static setClassName | ( | $ | registryClassName = 'Zend_Registry' ) |
[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. |
Definition at line 97 of file Registry.php.
static setInstance | ( | Zend_Registry $ | registry ) | [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. |
Definition at line 66 of file Registry.php.