private
|
#
__construct( )
Constructor, does nothing.
Constructor, does nothing.
|
public
|
#
__clone( )
Cloning of Registry is disallowed.
Cloning of Registry is disallowed.
|
final public static
Core\Modules\Registry\Registry
|
#
getInstance( )
Returns an instance of the registry object.
Returns an instance of the registry object.
Returns
|
public
|
#
__set( string $label, mixed $object )
Magic method. Alias of set().
Magic method. Alias of set().
Parameters
- $label
- Variable name.
- $object
- Variable value.
|
public
|
#
set( string $label, mixed & $object )
Registers an object with the Registry.
Registers an object with the Registry.
Parameters
- $label
- Variable name.
- $object
- Variable value.
Throws
InvalidArgumentException Registry varialbe name should be string.
|
public
mixed
|
#
__get( string $label )
Magic method. Returns a reference to an object in the Registry.
Magic method. Returns a reference to an object in the Registry.
Parameters
Returns
mixed
|
public
mixed
|
#
get( string $label )
Returns a reference to an object in the Registry.
Returns a reference to an object in the Registry.
Parameters
Returns
mixed
Throws
InvalidArgumentException Registry variable name should be string.
|
public
|
#
remove( string $label )
Un-registers an object from the registry.
Un-registers an object from the registry.
Parameters
Throws
InvalidArgumentException Registry variable name should be string.
|
public
boolean
|
#
__isset( string $label )
Checks if there's an object registered under a specific label.
Checks if there's an object registered under a specific label.
Parameters
Returns
boolean
|
public
|
#
__unset( string $label )
Magic method. Un-registers an object from the registry.
Magic method. Un-registers an object from the registry.
Parameters
|