Provides central object / variable store. The registry is a static object that can be used to store single instances of other objects. Notably it is used to hold the autoload and main config objects for the framework.

The registry is instantiated via the system object, therefore further instances are discouraged.

// create a registry and add 'myObject'
$oRegistry = new systemRegistry();
$oRegistry->set('myObject', new stdClass());


public set($inKey, $inObject)

Store a new instance in the registry

public remove($inKey)

Removes an object from the registry and from memory

public get($inKey)

Returns a previously stored instance, throws exception if not found

public reset()

Completely resets the registry, removing all objects

public countInstances()

Returns the count of instances in the registry

Inherited Methods

<  1  >