ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilGlobalCacheSettings. More...
Public Member Functions | |
readFromIniFile (ilIniFile $ilIniFile) | |
writeToIniFile (ilIniFile $ilIniFile) | |
activateAll () | |
addActivatedComponent ($component) | |
resetActivatedComponents () | |
isComponentActivated ($component) | |
areAllComponentActivated () | |
getService () | |
setService ($service) | |
getActivatedComponents () | |
setActivatedComponents ($activated_components) | |
isActive () | |
setActive ($active) | |
getLogLevel () | |
setLogLevel ($log_level) | |
__toString () | |
Data Fields | |
const | LOG_LEVEL_FORCED = -1 |
const | LOG_LEVEL_NONE = 0 |
const | LOG_LEVEL_SHY = 1 |
const | LOG_LEVEL_NORMAL = 2 |
const | LOG_LEVEL_CHATTY = 3 |
const | INI_HEADER_CACHE = 'cache' |
const | INI_FIELD_ACTIVATE_GLOBAL_CACHE = 'activate_global_cache' |
const | INI_FIELD_GLOBAL_CACHE_SERVICE_TYPE = 'global_cache_service_type' |
const | INI_HEADER_CACHE_ACTIVATED_COMPONENTS = 'cache_activated_components' |
const | INI_FIELD_LOG_LEVEL = 'log_level' |
Protected Member Functions | |
checkIniHeader (ilIniFile $ilIniFile) | |
getLogLevelName () | |
lookupLogLevelName ($level) | |
Protected Attributes | |
$service = ilGlobalCache::TYPE_STATIC | |
$activated_components = array() | |
$active = false | |
$log_level = self::LOG_LEVEL_NONE | |
Class ilGlobalCacheSettings.
Definition at line 10 of file class.ilGlobalCacheSettings.php.
ilGlobalCacheSettings::__toString | ( | ) |
Definition at line 214 of file class.ilGlobalCacheSettings.php.
References $log_level, $service, getActivatedComponents(), getLogLevelName(), getService(), and ilGlobalCache\lookupServiceClassName().
Referenced by writeToIniFile().
ilGlobalCacheSettings::activateAll | ( | ) |
Definition at line 84 of file class.ilGlobalCacheSettings.php.
References addActivatedComponent(), and ilGlobalCache\getAvailableComponents().
ilGlobalCacheSettings::addActivatedComponent | ( | $component | ) |
$component |
Definition at line 95 of file class.ilGlobalCacheSettings.php.
Referenced by activateAll(), and readFromIniFile().
ilGlobalCacheSettings::areAllComponentActivated | ( | ) |
Definition at line 122 of file class.ilGlobalCacheSettings.php.
References ilGlobalCache\getAvailableComponents().
|
protected |
ilIniFile | $ilIniFile |
Definition at line 185 of file class.ilGlobalCacheSettings.php.
References ilIniFile\addGroup(), and ilIniFile\readGroup().
Referenced by readFromIniFile().
ilGlobalCacheSettings::getActivatedComponents | ( | ) |
Definition at line 149 of file class.ilGlobalCacheSettings.php.
References $activated_components.
Referenced by __toString(), and ilGlobalCache\setup().
ilGlobalCacheSettings::getLogLevel | ( | ) |
Definition at line 199 of file class.ilGlobalCacheSettings.php.
References $log_level.
Referenced by getLogLevelName(), and writeToIniFile().
|
protected |
Definition at line 227 of file class.ilGlobalCacheSettings.php.
References getLogLevel(), and lookupLogLevelName().
Referenced by __toString().
ilGlobalCacheSettings::getService | ( | ) |
Definition at line 131 of file class.ilGlobalCacheSettings.php.
References $service.
Referenced by __toString(), and writeToIniFile().
ilGlobalCacheSettings::isActive | ( | ) |
Definition at line 167 of file class.ilGlobalCacheSettings.php.
References $active.
Referenced by readFromIniFile(), and writeToIniFile().
ilGlobalCacheSettings::isComponentActivated | ( | $component | ) |
$component |
Definition at line 113 of file class.ilGlobalCacheSettings.php.
Referenced by writeToIniFile().
|
protected |
$level |
Definition at line 238 of file class.ilGlobalCacheSettings.php.
References $r.
Referenced by getLogLevelName().
ilGlobalCacheSettings::readFromIniFile | ( | ilIniFile | $ilIniFile | ) |
ilIniFile | $ilIniFile |
Definition at line 43 of file class.ilGlobalCacheSettings.php.
References addActivatedComponent(), checkIniHeader(), isActive(), ilIniFile\readGroup(), ilIniFile\readVariable(), resetActivatedComponents(), setActive(), setLogLevel(), and setService().
ilGlobalCacheSettings::resetActivatedComponents | ( | ) |
Definition at line 102 of file class.ilGlobalCacheSettings.php.
Referenced by readFromIniFile().
ilGlobalCacheSettings::setActivatedComponents | ( | $activated_components | ) |
array | $activated_components |
Definition at line 158 of file class.ilGlobalCacheSettings.php.
References $activated_components.
ilGlobalCacheSettings::setActive | ( | $active | ) |
boolean | $active |
Definition at line 176 of file class.ilGlobalCacheSettings.php.
References $active.
Referenced by readFromIniFile().
ilGlobalCacheSettings::setLogLevel | ( | $log_level | ) |
int | $log_level |
Definition at line 208 of file class.ilGlobalCacheSettings.php.
References $log_level.
Referenced by readFromIniFile().
ilGlobalCacheSettings::setService | ( | $service | ) |
int | $service |
Definition at line 140 of file class.ilGlobalCacheSettings.php.
References $service.
Referenced by readFromIniFile().
ilGlobalCacheSettings::writeToIniFile | ( | ilIniFile | $ilIniFile | ) |
ilIniFile | $ilIniFile |
Definition at line 67 of file class.ilGlobalCacheSettings.php.
References __toString(), ilIniFile\addGroup(), ilGlobalCache\getAvailableComponents(), getLogLevel(), getService(), isActive(), isComponentActivated(), ilGlobalCache\log(), ilIniFile\removeGroup(), ilIniFile\setVariable(), and ilIniFile\write().
|
protected |
Definition at line 29 of file class.ilGlobalCacheSettings.php.
Referenced by getActivatedComponents(), and setActivatedComponents().
|
protected |
Definition at line 33 of file class.ilGlobalCacheSettings.php.
Referenced by isActive(), and setActive().
|
protected |
Definition at line 37 of file class.ilGlobalCacheSettings.php.
Referenced by __toString(), getLogLevel(), and setLogLevel().
|
protected |
Definition at line 25 of file class.ilGlobalCacheSettings.php.
Referenced by __toString(), getService(), and setService().
const ilGlobalCacheSettings::INI_FIELD_ACTIVATE_GLOBAL_CACHE = 'activate_global_cache' |
Definition at line 18 of file class.ilGlobalCacheSettings.php.
const ilGlobalCacheSettings::INI_FIELD_GLOBAL_CACHE_SERVICE_TYPE = 'global_cache_service_type' |
Definition at line 19 of file class.ilGlobalCacheSettings.php.
const ilGlobalCacheSettings::INI_FIELD_LOG_LEVEL = 'log_level' |
Definition at line 21 of file class.ilGlobalCacheSettings.php.
const ilGlobalCacheSettings::INI_HEADER_CACHE = 'cache' |
Definition at line 17 of file class.ilGlobalCacheSettings.php.
const ilGlobalCacheSettings::INI_HEADER_CACHE_ACTIVATED_COMPONENTS = 'cache_activated_components' |
Definition at line 20 of file class.ilGlobalCacheSettings.php.
const ilGlobalCacheSettings::LOG_LEVEL_CHATTY = 3 |
Definition at line 16 of file class.ilGlobalCacheSettings.php.
Referenced by ilGlobalCache\get(), ilGlobalCache\isActive(), and ilGlobalCache\set().
const ilGlobalCacheSettings::LOG_LEVEL_FORCED = -1 |
Definition at line 12 of file class.ilGlobalCacheSettings.php.
Referenced by HTML_Template_IT\init().
const ilGlobalCacheSettings::LOG_LEVEL_NONE = 0 |
Definition at line 13 of file class.ilGlobalCacheSettings.php.
const ilGlobalCacheSettings::LOG_LEVEL_NORMAL = 2 |
Definition at line 15 of file class.ilGlobalCacheSettings.php.
Referenced by ilGlobalCache\generateServiceId().
const ilGlobalCacheSettings::LOG_LEVEL_SHY = 1 |
Definition at line 14 of file class.ilGlobalCacheSettings.php.