Registry Class Reference
[Core]

Maintains a static table of keyed references. Used for storing/accessing single instance objects and values. More...

List of all members.

Public Member Functions

 delete ($key)
get ($key)
getRegistry ()
 set ($key, &$value)


Detailed Description

Maintains a static table of keyed references. Used for storing/accessing single instance objects and values.

Definition at line 19 of file Registry.inc.php.


Member Function Documentation

Registry.delete ( key  ) 

Remove an item from the registry.

Parameters:
$key string

Definition at line 58 of file Registry.inc.php.

References getRegistry().

& Registry.get ( key  ) 

Get the value of an item in the registry.

Parameters:
$key string
Returns:
mixed

Definition at line 35 of file Registry.inc.php.

References getRegistry().

Referenced by Help.getHelp(), PluginRegistry.getPlugins(), TemplateManager.smartyGetDebugInfo(), Locale.translate(), and CounterHandler.validate().

& Registry.getRegistry (  ) 

Get a static reference to the registry data structure.

Returns:
array

Definition at line 25 of file Registry.inc.php.

Referenced by delete(), get(), and set().

Registry.set ( key,
&$  value 
)

Set the value of an item in the registry. The item will be added if it does not already exist.

Parameters:
$key string
$value mixed

Definition at line 49 of file Registry.inc.php.

References getRegistry().

Referenced by Help.getHelp(), and PluginRegistry.register().


The documentation for this class was generated from the following file:

Generated on Mon Jul 14 10:55:45 2008 for Open Journal Systems by  doxygen 1.5.6