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)
mixedA container acting as source for \MUtil_Registry_Source
arrayThe directories where to look for requested classes
__get($name)
addPrefixPath(string $prefix, $path, boolean $prepend = true) : \Gems_Loader_LoaderAbstract
string
booleanPut 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
stringName of resource to set
mixedThe resource.
booleanTrue if $resource was OKcheckRegistryRequestsAnswers() : boolean
booleanFalse if required values are missing.getConsent(string $description) : \Gems\Util\ConsentCode
string
\Gems\Util\ConsentCodegetConsentRejected() : string
\Gems_Exception_Coding |
|---|
stringDefault value is 'do not use'getConsentTypes() : array
arrayDefault consent codes are 'do not use' and 'consent given'getConsentUnknown() : string
This is de consent description from gems__consents, not the consentCODE
stringgetCronJobLock() : \Gems_Util_LockFile
\Gems_Util_LockFilegetCurrentURI(string $subpath = '') : string
| staticvar | string $uri |
|---|
stringOptional string
stringThe Url + basePath plus the optional subpathgetDbLookup() : \Gems_Util_DbLookup
\Gems_Util_DbLookupgetDefaultConsent() : string
This is de consent description from gems__consents, not the consentCODE
stringgetImageUri($imageFile)
getLocalized() : \Gems_Util_Localized
\Gems_Util_LocalizedgetMaintenanceLock() : \Gems_Util_LockFile
\Gems_Util_LockFilegetMonitor() : \Gems\Util\Monitor
\Gems\Util\MonitorgetReceptionCode(string $code) : \Gems_Util_ReceptionCode
string
\Gems_Util_ReceptionCodegetReceptionCodeLibrary() : \Gems_Util_ReceptionCodeLibrary
\Gems_Util_ReceptionCodeLibrarygetRegistryRequests() : array
Returns those object variables defined by the subclass but not at the level of this definition.
Can be overruled.
arrayof string namesgetRequestCache(string $sourceAction= null, boolean $readonly= false) : \Gems_Util_RequestCache
stringThe action to get the cache from if not the current one.
booleanOptional, tell the cache not to store any new values
\Gems_Util_RequestCachegetTokenData() : \Gems_Util_TokenData
\Gems_Util_TokenDatagetTrackData() : \Gems_Util_TrackData
\Gems_Util_TrackDatagetTranslated() : \Gems_Util_Translated
\Gems_Util_TranslatedisAllowedIP(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
arrayprefix => path
stringThe sub directories to cascade to
booleanAllows full class name specification instead of just plugin name part
arrayprefix => path_getClass(string $name, string $className= null, array $arguments= array()) : mixed
stringThe $name of the variable to store this object in.
stringClass name or null if the same as $name, prepending $this->_dirs.
arrayClass initialization arguments.
mixedInstance 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