\Zend_Registry
Generic storage class helps to manage global data.
- Copyright: Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Registry
extends ArrayObject
{
- // Inherited constants from ArrayObject
- const = 1;
- const = 2;
- // members
- private static string $_registryClassName = 'Zend_Registry';
- private static Zend_Registry $_registry = NULL;
- // methods
- public static Zend_Registry getInstance()
- public static void setInstance()
- protected static void init()
- public static void setClassName()
- public static void _unsetInstance()
- public static mixed get()
- public static void set()
- public static boolean isRegistered()
- public void __construct()
- public void offsetExists()
- // Inherited methods from ArrayObject
- public void __construct()
- public void append()
- public void asort()
- public int count()
- public array exchangeArray()
- public array getArrayCopy()
- public int getFlags()
- public ArrayIterator getIterator()
- public string getIteratorClass()
- public void ksort()
- public void natcasesort()
- public void natsort()
- public bool offsetExists()
- public mixed offsetGet()
- public void offsetSet()
- public void offsetUnset()
- public string serialize()
- public void setFlags()
- public void setIteratorClass()
- public void uasort()
- public void uksort()
- public void unserialize()
Hierarchy
Extends
Constants
Name | Value |
---|---|
1 | |
2 |
Members
private
- $_registry
—
Zend_Registry
Registry object provides storage for shared objects. - $_registryClassName
—
string
Class name of the singleton registry object.
Methods
protected
- init() — Initialize the default registry instance.
public
- __construct() — Constructs a parent ArrayObject with default ARRAY_AS_PROPS to allow acces as an object
- _unsetInstance() — Unset the default registry instance.
- get() — getter method, basically same as offsetGet().
- getInstance() — Retrieves the default registry instance.
- isRegistered() — Returns TRUE if the $index is a named value in the registry, or FALSE if $index was not found in the registry.
- offsetExists()
- set() — setter method, basically same as offsetSet().
- setClassName() — Set the class name to use for the default registry instance.
- setInstance() — Set the default registry instance to a specified instance.
Inherited from ArrayObject
public
- append() — Appends the value
- asort() — Sort the entries by value
- count() — Get the number of public properties in the ArrayObject
- exchangeArray() — Exchange the array for another one
- getArrayCopy() — Creates a copy of the ArrayObject
- getFlags() — Gets the behavior flags
- getIterator() — Create a new iterator from an ArrayObject instance
- getIteratorClass() — Gets the iterator classname for the ArrayObject
- ksort() — Sort the entries by key
- natcasesort() — Sort an array using a case insensitive "natural order" algorithm
- natsort() — Sort entries using a "natural order" algorithm
- offsetExists() — Returns whether the requested index exists
- offsetGet() — Returns the value at the specified index
- offsetSet() — Sets the value at the specified index to newval
- offsetUnset() — Unsets the value at the specified index
- serialize() — Serialize an ArrayObject
- setFlags() — Sets the behavior flags
- setIteratorClass() — Sets the iterator classname for the ArrayObject
- uasort() — Sort the entries with a user-defined comparison function and maintain key association
- uksort() — Sort the entries by keys using a user-defined comparison function
- unserialize() — Unserialize an ArrayObject