Class for general utility functions and access to general utility classes.
As these classes may need setting of values this subclass implements the checkRegistryRequestsAnswers() easy access to resources.
package | Gems |
---|---|
subpackage | Util |
copyright | Copyright (c) 2011 Erasmus MC |
license | New BSD License |
since | Class available since version 1.0 |
inherited_from | \Gems_Loader_TargetLoaderAbstract |
__construct(mixed $container, array $dirs)
mixed
A container acting as source for \MUtil_Registry_Source
array
The directories where to look for requested classes
__get($name)
addPrefixPath(string $prefix, $path, boolean $prepend = true
) : \Gems_Loader_LoaderAbstract
string
boolean
Put path at the beginning of the stack (has no effect when prefix / dir already set)
\Gems_Loader_LoaderAbstract
(continuation pattern)afterRegistry() : void
answerRegistryRequest(string $name, mixed $resource) : boolean
string
Name of resource to set
mixed
The resource.
boolean
True if $resource was OKcheckRegistryRequestsAnswers() : boolean
boolean
False if required values are missing.getConsent(string $description) : \Gems\Util\ConsentCode
string
\Gems\Util\ConsentCode
getConsentRejected() : string
\Gems_Exception_Coding |
---|
string
Default value is 'do not use'getConsentTypes() : array
array
Default consent codes are 'do not use' and 'consent given'getConsentUnknown() : string
This is de consent description from gems__consents, not the consentCODE
string
getCronJobLock() : \Gems_Util_LockFile
\Gems_Util_LockFile
getCurrentURI(string $subpath = ''
) : string
staticvar | string $uri |
---|
string
Optional string
string
The Url + basePath plus the optional subpathgetDbLookup() : \Gems_Util_DbLookup
\Gems_Util_DbLookup
getDefaultConsent() : string
This is de consent description from gems__consents, not the consentCODE
string
getImageUri($imageFile)
getLocalized() : \Gems_Util_Localized
\Gems_Util_Localized
getMaintenanceLock() : \Gems_Util_LockFile
\Gems_Util_LockFile
getMonitor() : \Gems\Util\Monitor
\Gems\Util\Monitor
getReceptionCode(string $code) : \Gems_Util_ReceptionCode
string
\Gems_Util_ReceptionCode
getReceptionCodeLibrary() : \Gems_Util_ReceptionCodeLibrary
\Gems_Util_ReceptionCodeLibrary
getRegistryRequests() : array
Returns those object variables defined by the subclass but not at the level of this definition.
Can be overruled.
array
of string namesgetRequestCache(string $sourceAction= null
, boolean $readonly= false
) : \Gems_Util_RequestCache
string
The action to get the cache from if not the current one.
boolean
Optional, tell the cache not to store any new values
\Gems_Util_RequestCache
getTokenData() : \Gems_Util_TokenData
\Gems_Util_TokenData
getTrackData() : \Gems_Util_TrackData
\Gems_Util_TrackData
getTranslated() : \Gems_Util_Translated
\Gems_Util_Translated
isAllowedIP(string $ip, string $ipRanges = ""
) : boolean
Multiple addresses/ranges are separated by a colon, an individual range takes the form of 10.0.0.0-10.0.0.255 (subnet masks are not supported)
string
string
boolean
_cascadedDirs(array $dirs, string $cascade, boolean $fullClassnameFallback = true
) : array
array
prefix => path
string
The sub directories to cascade to
boolean
Allows full class name specification instead of just plugin name part
array
prefix => path_getClass(string $name, string $className= null
, array $arguments= array()
) : mixed
string
The $name of the variable to store this object in.
string
Class name or null if the same as $name, prepending $this->_dirs.
array
Class initialization arguments.
mixed
Instance of $className_loadClass(string $name, boolean $create= false
, array $arguments= array()
) : mixed
filterRequestNames(string $name) : boolean
Can be overriden.
string
boolean
$_dirs : array
The standard value is
But an alternative could be:
$_loader : \MUtil_Loader_PluginLoader
$basepath : \Gems_Util_BasePath
$cascade : string
'Util'
$cascade : string
null
$dbLookup : \Gems_Util_DbLookup
$localized : \Gems_Util_Localized
$monitor : \Gems\Util\Monitor
$project : \Gems_Project_ProjectSettings
$receptionCodeLibrary : \Gems_Util_ReceptionCodeLibrary
$requestCache : \Gems_Util_RequestCache
$tokenData : \Gems_Util_TokenData
$trackData : \Gems_Util_TrackData
$translated : \Gems_Util_Translated