ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Class ilGlobalCacheSettings. More...
Public Member Functions | |
readFromIniFile (ilIniFile $ilIniFile) | |
writeToIniFile (ilIniFile $ilIniFile) | |
activateAll () | |
addActivatedComponent ($component) | |
resetActivatedComponents () | |
isComponentActivated ($component) | |
areAllComponentActivated () | |
getService () | |
setService (int $service) | |
getActivatedComponents () | |
setActivatedComponents (array $activated_components) | |
isActive () | |
setActive (bool $active) | |
getLogLevel () | |
setLogLevel (int $log_level) | |
__toString () | |
addMemcachedNode (ilMemcacheServer $node_id) | |
getMemcachedNodes () | |
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 (int $level) | |
Protected Attributes | |
int | $service = ilGlobalCache::TYPE_STATIC |
array | $activated_components = [] |
bool | $active = false |
int | $log_level = self::LOG_LEVEL_NONE |
array | $memcached_nodes = [] |
Class ilGlobalCacheSettings.
Definition at line 26 of file class.ilGlobalCacheSettings.php.
ilGlobalCacheSettings::__toString | ( | ) |
Definition at line 232 of file class.ilGlobalCacheSettings.php.
References getActivatedComponents(), getLogLevelName(), getService(), and ilGlobalCache\lookupServiceClassName().
ilGlobalCacheSettings::activateAll | ( | ) |
Definition at line 144 of file class.ilGlobalCacheSettings.php.
References addActivatedComponent(), and ilGlobalCache\getAvailableComponents().
ilGlobalCacheSettings::addActivatedComponent | ( | $component | ) |
mixed | $component |
Definition at line 154 of file class.ilGlobalCacheSettings.php.
Referenced by activateAll(), and readFromIniFile().
ilGlobalCacheSettings::addMemcachedNode | ( | ilMemcacheServer | $node_id | ) |
Definition at line 264 of file class.ilGlobalCacheSettings.php.
ilGlobalCacheSettings::areAllComponentActivated | ( | ) |
Definition at line 173 of file class.ilGlobalCacheSettings.php.
References ilGlobalCache\getAvailableComponents().
|
protected |
Definition at line 210 of file class.ilGlobalCacheSettings.php.
References ilIniFile\addGroup(), and ilIniFile\readGroup().
Referenced by readFromIniFile().
ilGlobalCacheSettings::getActivatedComponents | ( | ) |
Definition at line 190 of file class.ilGlobalCacheSettings.php.
References $activated_components.
Referenced by __toString(), and ilGlobalCache\setup().
ilGlobalCacheSettings::getLogLevel | ( | ) |
Definition at line 222 of file class.ilGlobalCacheSettings.php.
References $log_level.
Referenced by getLogLevelName(), and writeToIniFile().
|
protected |
Definition at line 247 of file class.ilGlobalCacheSettings.php.
References getLogLevel(), and lookupLogLevelName().
Referenced by __toString().
ilGlobalCacheSettings::getMemcachedNodes | ( | ) |
Definition at line 269 of file class.ilGlobalCacheSettings.php.
References $memcached_nodes.
ilGlobalCacheSettings::getService | ( | ) |
Definition at line 180 of file class.ilGlobalCacheSettings.php.
References $service.
Referenced by __toString(), and writeToIniFile().
ilGlobalCacheSettings::isActive | ( | ) |
Definition at line 200 of file class.ilGlobalCacheSettings.php.
References $active.
Referenced by readFromIniFile(), and writeToIniFile().
ilGlobalCacheSettings::isComponentActivated | ( | $component | ) |
mixed | $component |
Definition at line 168 of file class.ilGlobalCacheSettings.php.
Referenced by writeToIniFile().
|
protected |
Definition at line 252 of file class.ilGlobalCacheSettings.php.
Referenced by getLogLevelName().
ilGlobalCacheSettings::readFromIniFile | ( | ilIniFile | $ilIniFile | ) |
Definition at line 77 of file class.ilGlobalCacheSettings.php.
References addActivatedComponent(), checkIniHeader(), isActive(), ilIniFile\readGroup(), ilIniFile\readVariable(), resetActivatedComponents(), setActive(), setLogLevel(), and setService().
ilGlobalCacheSettings::resetActivatedComponents | ( | ) |
Definition at line 160 of file class.ilGlobalCacheSettings.php.
Referenced by readFromIniFile().
ilGlobalCacheSettings::setActivatedComponents | ( | array | $activated_components | ) |
Definition at line 195 of file class.ilGlobalCacheSettings.php.
References $activated_components.
ilGlobalCacheSettings::setActive | ( | bool | $active | ) |
Definition at line 205 of file class.ilGlobalCacheSettings.php.
References $active.
Referenced by readFromIniFile().
ilGlobalCacheSettings::setLogLevel | ( | int | $log_level | ) |
Definition at line 227 of file class.ilGlobalCacheSettings.php.
References $log_level.
Referenced by readFromIniFile().
ilGlobalCacheSettings::setService | ( | int | $service | ) |
Definition at line 185 of file class.ilGlobalCacheSettings.php.
References $service.
Referenced by readFromIniFile().
ilGlobalCacheSettings::writeToIniFile | ( | ilIniFile | $ilIniFile | ) |
Definition at line 114 of file class.ilGlobalCacheSettings.php.
References ilIniFile\addGroup(), ilGlobalCache\getAvailableComponents(), getLogLevel(), getService(), isActive(), isComponentActivated(), ilIniFile\removeGroup(), ilIniFile\setVariable(), and ilIniFile\write().
|
protected |
Definition at line 69 of file class.ilGlobalCacheSettings.php.
Referenced by getActivatedComponents(), and setActivatedComponents().
|
protected |
Definition at line 70 of file class.ilGlobalCacheSettings.php.
Referenced by isActive(), and setActive().
|
protected |
Definition at line 71 of file class.ilGlobalCacheSettings.php.
Referenced by getLogLevel(), and setLogLevel().
|
protected |
Definition at line 75 of file class.ilGlobalCacheSettings.php.
Referenced by getMemcachedNodes().
|
protected |
Definition at line 68 of file class.ilGlobalCacheSettings.php.
Referenced by getService(), and setService().
const ilGlobalCacheSettings::INI_FIELD_ACTIVATE_GLOBAL_CACHE = 'activate_global_cache' |
Definition at line 55 of file class.ilGlobalCacheSettings.php.
const ilGlobalCacheSettings::INI_FIELD_GLOBAL_CACHE_SERVICE_TYPE = 'global_cache_service_type' |
Definition at line 59 of file class.ilGlobalCacheSettings.php.
const ilGlobalCacheSettings::INI_FIELD_LOG_LEVEL = 'log_level' |
Definition at line 67 of file class.ilGlobalCacheSettings.php.
const ilGlobalCacheSettings::INI_HEADER_CACHE = 'cache' |
Definition at line 51 of file class.ilGlobalCacheSettings.php.
const ilGlobalCacheSettings::INI_HEADER_CACHE_ACTIVATED_COMPONENTS = 'cache_activated_components' |
Definition at line 63 of file class.ilGlobalCacheSettings.php.
const ilGlobalCacheSettings::LOG_LEVEL_CHATTY = 3 |
Definition at line 47 of file class.ilGlobalCacheSettings.php.
Referenced by ilGlobalCache\get(), ilGlobalCache\isActive(), and ilGlobalCache\set().
const ilGlobalCacheSettings::LOG_LEVEL_FORCED = -1 |
Definition at line 31 of file class.ilGlobalCacheSettings.php.
Referenced by HTML_Template_IT\init().
const ilGlobalCacheSettings::LOG_LEVEL_NONE = 0 |
Definition at line 35 of file class.ilGlobalCacheSettings.php.
const ilGlobalCacheSettings::LOG_LEVEL_NORMAL = 2 |
Definition at line 43 of file class.ilGlobalCacheSettings.php.
Referenced by ilGlobalCache\generateServiceId().
const ilGlobalCacheSettings::LOG_LEVEL_SHY = 1 |
Definition at line 39 of file class.ilGlobalCacheSettings.php.