Open Journal Systems  3.3.0
Registry Class Reference

Static Public Member Functions

static & _getRegistry ()
 
static clear ()
 
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

◆ _getRegistry()

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 clear(), delete(), get(), and set().

◆ clear()

static Registry::clear ( )
static

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

References _getRegistry().

◆ delete()

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().

◆ get()

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

Get the value of an item in the registry.

Parameters
$keystring
$createIfEmptyboolean Whether or not to create the entry if none exists
$createWithDefaultmixed If $createIfEmpty, this value will be used as a default
Returns
mixed

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

References _getRegistry(), and set().

Referenced by PKPLocale\_allLocalesCacheMiss(), Core\_botFileListCacheMiss(), PKPLocale\_getAllLocalesCache(), TimeZoneDAO\_getTimeZoneCache(), TimeZoneDAO\_timeZoneCacheMiss(), SwordPlugin\callbackSettingsTab(), MarkupPlugin\callbackShowArticlesBatchConversionTabs(), StaticPagesPlugin\callbackShowWebsiteSettingsTabs(), MarkupPlugin\callbackShowWebsiteSettingsTabs(), fatalError(), PKPApplication\get(), Config\getConfigFileName(), Config\getContextBaseUrls(), DAORegistry\getDAOs(), Config\getData(), PKPApplication\getDispatcher(), HookRegistry\getHooks(), TypeDescriptionFactory\getInstance(), DBConnection\getInstance(), PKPLocale\getLocaleFiles(), CacheManager\getManager(), SessionManager\getManager(), PKPTemplateManager\getManager(), PluginRegistry\getPlugins(), PKPApplication\getQualifiedDAOName(), PKPRequest\getRemoteAddr(), PKPApplication\getRequest(), Plugin\getRequest(), PKPRequest\getSession(), PKPRequest\getSite(), Site\getSupportedLocaleNames(), PKPRequest\getUser(), DBConnection\logAdodbMessage(), PKPString\mime_content_type(), PKPTestCase\mockRequest(), SwordPlugin\performAutomaticDeposits(), TinyMCEPlugin\registerJS(), PKPRequestTest\setUp(), PKPTestCase\setUp(), PKPHandler\setupTemplate(), PKPLocale\translate(), and PKPHandler\validate().

◆ set()

static Registry::set (   $key,
$value 
)
static

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