4.6. Opl_Registry class
4.6.2. get()
4.6.1. exists()
« Previous
4.6.3. getState()
Next »

4.6.2. get()

ConstructStatic method
Visibilitypublic
Referenceobject Opl_Registry::get( string $name )
Argument list
$name - string
The object name.
Returned valueThe registered object.
Thrown exceptionsOpl_Debug_ItemNotExists_Exception
Versionssince 2.0.0-dev7

Returns previously registered object:

Opl_Registry::register('foo', new Opl_Foo_Object);
 
$obj = Opl_Registry::get('foo');

If the object does not exists, Opl_Debug_ItemNotExists_Exception is thrown.

See also:

4.6.2. get()
4.6. Opl_Registry class
« Previous
4.6.1. exists()
Next »
4.6.3. getState()