Silla.IO API
  • Namespace
  • Class
  • Tree
  • Todo
  • Download

Namespaces

  • App
    • Controllers
  • CMS
    • Controllers
    • Helpers
    • Models
  • Configurations
    • CI
    • Development
    • Production
    • Staging
  • Core
    • Base
    • CLI
      • Cache
      • DB
    • Helpers
    • Modules
      • Cache
        • Adapters
        • Interfaces
      • Crypt
      • DB
        • Adapters
        • Decorators
          • Interfaces
        • Features
          • Paginator
        • Interfaces
      • Registry
      • Render
        • Adapters
        • Interfaces
      • Router
      • Session
        • Adapters
        • Interfaces
  • None
  • Tasks
    • DB

Classes

  • Registry

Class Registry

Router Class definition.

Final
Namespace: Core\Modules\Registry
Located at modules/registry/registry.php

Methods summary

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

Core\Modules\Registry\Registry
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

$label
Variable name.

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

$label
Variable name.

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

$label
Variable name.

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

$label
Variable name.

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

$label
Variable name.

Properties summary

private static object $instance

Reference to the current instance of the Registry object.

Reference to the current instance of the Registry object.

# null
private array $store

Keeps all object references.

Keeps all object references.

# array()
Silla.IO API API documentation generated by ApiGen