19declare(strict_types=1);
37 $db = $environment->getResource(Setup\Environment::RESOURCE_DATABASE);
49 $chatAdministration = current($chatAdministrations);
52 $settings = $chat_admin->loadGeneralSettings();
55 $storage->storeConfigText(
58 'IP-Address/FQN of Chat Server.'
60 $storage->storeConfigText(
63 'Port of the chat server.'
65 $storage->storeConfigText(
68 'http(s)://[IP/Domain]/[SUB_DIRECTORY]'
71 $storage->storeConfigText(
74 'Protocol used for connection (http/https).'
79 Setup\Metrics\Metric::STABILITY_CONFIG,
80 Setup\Metrics\Metric::TYPE_TEXT,
84 Setup\Metrics\Metric::STABILITY_CONFIG,
85 Setup\Metrics\Metric::TYPE_TEXT,
89 Setup\Metrics\Metric::STABILITY_CONFIG,
90 Setup\Metrics\Metric::TYPE_TEXT,
94 Setup\Metrics\Metric::STABILITY_CONFIG,
95 Setup\Metrics\Metric::TYPE_COLLECTION,
99 'dhparam' => $dhparam,
101 'Holds parameters for https.'
103 $storage->store(
'https',
$https);
106 $storage->storeConfigText(
109 "Absolute server path to the chat server's log file."
111 $storage->storeConfigText(
114 'Possible values are emerg, alert, crit error, warning, notice, info, debug, silly.'
116 $storage->storeConfigText(
119 "Absolute server path to the chat server's error log file."
124 Setup\Metrics\Metric::STABILITY_CONFIG,
125 Setup\Metrics\Metric::TYPE_TEXT,
129 Setup\Metrics\Metric::STABILITY_CONFIG,
130 Setup\Metrics\Metric::TYPE_COLLECTION,
132 'ilias_url' => $ilias_url
134 'Holds proxy url if ILIAS proxy is enabled.'
136 $storage->store(
'ilias_proxy', $ilias_proxy);
138 $storage->storeConfigBool(
141 'Holds proxy url if ILIAS proxy is enabled.'
147 Setup\Metrics\Metric::STABILITY_CONFIG,
148 Setup\Metrics\Metric::TYPE_TEXT,
152 Setup\Metrics\Metric::STABILITY_CONFIG,
153 Setup\Metrics\Metric::TYPE_COLLECTION,
155 'client_url' => $client_url
157 'Holds proxy url if client proxy is enabled.'
159 $storage->store(
'client_proxy', $client_proxy);
161 $storage->storeConfigBool(
164 'Holds proxy url if client proxy is enabled.'
170 Setup\Metrics\Metric::STABILITY_CONFIG,
171 Setup\Metrics\Metric::TYPE_TEXT,
175 Setup\Metrics\Metric::STABILITY_CONFIG,
176 Setup\Metrics\Metric::TYPE_TEXT,
177 (
string) (
$settings[
'deletion_value'] ??
'')
180 Setup\Metrics\Metric::STABILITY_CONFIG,
181 Setup\Metrics\Metric::TYPE_TEXT,
185 Setup\Metrics\Metric::STABILITY_CONFIG,
186 Setup\Metrics\Metric::TYPE_COLLECTION,
188 'deletion_unit' => $deletion_unit,
189 'deletion_value' => $deletion_value,
190 'deletion_time' => $deletion_time,
192 'Holds information about deletion process.'
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Customizing of pimple-DIC for ILIAS.
A metric is something we can measure about the system.
collectFrom(Setup\Environment $environment, Setup\Metrics\Storage $storage)
getTentativePreconditions(Setup\Environment $environment)
static _getObjectsByType(string $obj_type="", int $owner=null)
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...