Open Journal Systems
3.3.0
|
Static Public Member Functions | |
static & | _getRegistry () |
static | clear () |
static | delete ($key) |
static & | get ($key, $createIfEmpty=false, $createWithDefault=null) |
static | set ($key, &$value) |
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.
|
static |
|
static |
Definition at line 69 of file Registry.inc.php.
References _getRegistry().
|
static |
Remove an item from the registry.
$key | string |
Definition at line 62 of file Registry.inc.php.
References _getRegistry().
Referenced by PKPTestCase\mockRequest().
|
static |
Get the value of an item in the registry.
$key | string |
$createIfEmpty | boolean Whether or not to create the entry if none exists |
$createWithDefault | mixed If $createIfEmpty, this value will be used as a default |
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().
|
static |
Set the value of an item in the registry. The item will be added if it does not already exist.
$key | string |
$value | mixed |
Definition at line 53 of file Registry.inc.php.
References _getRegistry().
Referenced by PKPApplication\__construct(), PKPRouterTestCase\_setUpMockEnvironment(), PluginTestCase\executePluginTest(), get(), PolicyTestCase\getMockRequest(), PKPRequest\getSite(), Core\isUserAgentBot(), Config\setConfigFileName(), PKPRequestTest\tearDown(), PKPTestCase\tearDown(), and OAIMetadataFormat_DCTest\testToXml().