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
Removes an object from the registry and from memory
Returns a previously stored instance, throws exception if not found
Completely resets the registry, removing all objects
Returns the count of instances in the registry