2 require_once(
'./Services/GlobalCache/classes/class.ilGlobalCache.php');
46 $this->
setActive($ilIniFile->
readVariable(self::INI_HEADER_CACHE, self::INI_FIELD_ACTIVATE_GLOBAL_CACHE));
47 $this->
setService($ilIniFile->
readVariable(self::INI_HEADER_CACHE, self::INI_FIELD_GLOBAL_CACHE_SERVICE_TYPE));
52 $cache_components = $ilIniFile->
readGroup(self::INI_HEADER_CACHE_ACTIVATED_COMPONENTS);
53 if (is_array($cache_components)) {
54 foreach ($cache_components as $comp => $v) {
69 $ilIniFile->
setVariable(self::INI_HEADER_CACHE, self::INI_FIELD_ACTIVATE_GLOBAL_CACHE, $this->
isActive() ?
'1' :
'0');
70 $ilIniFile->
setVariable(self::INI_HEADER_CACHE, self::INI_FIELD_GLOBAL_CACHE_SERVICE_TYPE, $this->
getService());
73 $ilIniFile->
removeGroup(self::INI_HEADER_CACHE_ACTIVATED_COMPONENTS);
74 $ilIniFile->
addGroup(self::INI_HEADER_CACHE_ACTIVATED_COMPONENTS);
78 if ($ilIniFile->
write()) {
97 $this->activated_components[] = $component;
98 $this->activated_components = array_unique($this->activated_components);
104 $this->activated_components =
array();
115 return in_array($component, $this->activated_components);
187 if (!$ilIniFile->
readGroup(self::INI_HEADER_CACHE)) {
188 $ilIniFile->
addGroup(self::INI_HEADER_CACHE);
190 if (!$ilIniFile->
readGroup(self::INI_HEADER_CACHE_ACTIVATED_COMPONENTS)) {
191 $ilIniFile->
addGroup(self::INI_HEADER_CACHE_ACTIVATED_COMPONENTS);
241 foreach (
$r->getConstants() as $k => $v) {
242 if (strpos($k,
'LOG_LEVEL') === 0 and $v == $level) {
areAllComponentActivated()
checkIniHeader(ilIniFile $ilIniFile)
writeToIniFile(ilIniFile $ilIniFile)
setVariable($a_group_name, $a_var_name, $a_var_value)
sets a variable in a group public
write()
save ini-file-data to filesystem private
readVariable($a_group, $a_var_name)
reads a single variable from a group public
isComponentActivated($component)
Class ilGlobalCacheSettings.
readFromIniFile(ilIniFile $ilIniFile)
static lookupServiceClassName($service_type)
removeGroup($a_group_name)
removes a group public
static getAvailableComponents()
setActivatedComponents($activated_components)
resetActivatedComponents()
Create styles array
The data for the language used.
lookupLogLevelName($level)
addActivatedComponent($component)
static log($message, $log_level)
const INI_FIELD_ACTIVATE_GLOBAL_CACHE
const INI_FIELD_LOG_LEVEL
const INI_HEADER_CACHE_ACTIVATED_COMPONENTS
const INI_FIELD_GLOBAL_CACHE_SERVICE_TYPE
addGroup($a_group_name)
adds a new group public
readGroup($a_group_name)
returns an associative array of the variables in one group public