19 $db = $environment->getResource(Setup\Environment::RESOURCE_DATABASE);
20 $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
22 if (!$client_ini || !$db) {
35 $settings->readFromIniFile($client_ini);
37 $service_type = (int) $settings->getService();
39 $storage->storeConfigText(
42 "The backend that is used for the ILIAS cache."
44 $storage->storeConfigBool(
46 (
bool) $settings->isActive()
54 $server_collection = [];
57 Setup\Metrics\Metric::STABILITY_CONFIG,
58 Setup\Metrics\Metric::TYPE_BOOL,
62 Setup\Metrics\Metric::STABILITY_CONFIG,
63 Setup\Metrics\Metric::TYPE_TEXT,
67 Setup\Metrics\Metric::STABILITY_CONFIG,
68 Setup\Metrics\Metric::TYPE_TEXT,
72 Setup\Metrics\Metric::STABILITY_CONFIG,
73 Setup\Metrics\Metric::TYPE_TEXT,
78 Setup\Metrics\Metric::STABILITY_CONFIG,
79 Setup\Metrics\Metric::TYPE_COLLECTION,
86 "Configured memcached node."
91 Setup\Metrics\Metric::STABILITY_CONFIG,
92 Setup\Metrics\Metric::TYPE_COLLECTION,
94 "Collection of configured memcached nodes."
96 $storage->store(
"memcached_nodes", $nodes);
99 $component_activation = [];
102 Setup\Metrics\Metric::STABILITY_CONFIG,
103 Setup\Metrics\Metric::TYPE_BOOL,
104 $settings->isComponentActivated($component)
108 Setup\Metrics\Metric::STABILITY_CONFIG,
109 Setup\Metrics\Metric::TYPE_COLLECTION,
110 $component_activation,
111 "Which components are activated to use caching?"
115 $component_activation
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
An exception for terminatinating execution or to throw for unit testing.
Customizing of pimple-DIC for ILIAS.
A metric is something we can measure about the system.
getTentativePreconditions(Setup\Environment $environment)
collectFrom(Setup\Environment $environment, Setup\Metrics\Storage $storage)
Class ilGlobalCacheSettings.
static lookupServiceConfigName(int $service_type)
static getAvailableComponents()
An environment holds resources to be used in the setup process.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...