$registry
$registry :\Phile\Core\Registry
Registry object provides storage for shared objects.
the Registry class for implementing a registry
$registry :\Phile\Core\Registry
Registry object provides storage for shared objects.
getInstance(): \Phile\Core\Registry
Retrieves the default registry instance.
setInstance(\Phile\Core\Registry $registry)
Set the default registry instance to a specified instance.
\Phile\Core\Registry | $registry | An object instance of type Registry, or a subclass. |
get(string $index): mixed
getter method, basically same as offsetGet().
This method can be called from an object of type Registry, or it can be called statically. In the latter case, it uses the default static instance stored in the class.
string | $index |
|
if no entry is registerd for $index.
set(string $index,mixed $value): void
setter method, basically same as offsetSet().
This method can be called from an object of type Registry, or it can be called statically. In the latter case, it uses the default static instance stored in the class.
string | $index | The location in the ArrayObject in which to store the value. |
mixed | $value | The object to store in the ArrayObject. |