Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
Registry Class Reference

Static Public Member Functions

static & _getRegistry ()
 
static delete ($key)
 
static & get ($key, $createIfEmpty=false, $createWithDefault=null)
 
static set ($key, &$value)
 

Detailed Description

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

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

Member Function Documentation

static& Registry::_getRegistry ( )
static

Get a static reference to the registry data structure.

Returns
array

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

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

static Registry::delete (   $key)
static

Remove an item from the registry.

Parameters
$keystring

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

References _getRegistry().

Referenced by PKPTestCase\mockRequest().

static& Registry::get (   $key,
  $createIfEmpty = false,
  $createWithDefault = null 
)
static
static Registry::set (   $key,
$value 
)
static

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

Parameters
$keystring
$valuemixed

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

References _getRegistry().

Referenced by PKPRouterTestCase\_setUpMockEnvironment(), PluginTestCase\executePluginTest(), get(), PluginRegistry\register(), Config\setConfigFileName(), DispatcherTest\setUp(), and PKPTestCase\tearDown().


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