- 4.6. Opl_Registry class
4.6.2. get() - 4.6.1. exists()
« Previous - 4.6.3. getState()
Next »
4.6.2. get()
| Construct | Static method |
|---|---|
| Visibility | public |
| Reference | object Opl_Registry::get( string $name ) |
| Argument list |
|
| Returned value | The registered object. |
| Thrown exceptions | Opl_Debug_ItemNotExists_Exception |
| Versions | since 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()