19 declare(strict_types=1);
    37         $db = $environment->getResource(Setup\Environment::RESOURCE_DATABASE);
    44         $GLOBALS[
'DIC'] = 
new DI\Container();
    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).'    78                 $cert = 
new Setup\Metrics\Metric(
    79                     Setup\Metrics\Metric::STABILITY_CONFIG,
    80                     Setup\Metrics\Metric::TYPE_TEXT,
    83                 $key = 
new Setup\Metrics\Metric(
    84                     Setup\Metrics\Metric::STABILITY_CONFIG,
    85                     Setup\Metrics\Metric::TYPE_TEXT,
    88                 $dhparam = 
new Setup\Metrics\Metric(
    89                     Setup\Metrics\Metric::STABILITY_CONFIG,
    90                     Setup\Metrics\Metric::TYPE_TEXT,
    93                 $https = 
new Setup\Metrics\Metric(
    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."   123                 $ilias_url = 
new Setup\Metrics\Metric(
   124                     Setup\Metrics\Metric::STABILITY_CONFIG,
   125                     Setup\Metrics\Metric::TYPE_TEXT,
   128                 $ilias_proxy = 
new Setup\Metrics\Metric(
   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.'   146                 $client_url = 
new Setup\Metrics\Metric(
   147                     Setup\Metrics\Metric::STABILITY_CONFIG,
   148                     Setup\Metrics\Metric::TYPE_TEXT,
   151                 $client_proxy = 
new Setup\Metrics\Metric(
   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.'   169                 $deletion_unit = 
new Setup\Metrics\Metric(
   170                     Setup\Metrics\Metric::STABILITY_CONFIG,
   171                     Setup\Metrics\Metric::TYPE_TEXT,
   174                 $deletion_value = 
new Setup\Metrics\Metric(
   175                     Setup\Metrics\Metric::STABILITY_CONFIG,
   176                     Setup\Metrics\Metric::TYPE_TEXT,
   177                     (
string) (
$settings[
'deletion_value'] ?? 
'')
   179                 $deletion_time = 
new Setup\Metrics\Metric(
   180                     Setup\Metrics\Metric::STABILITY_CONFIG,
   181                     Setup\Metrics\Metric::TYPE_TEXT,
   184                 $deletion_mode = 
new Setup\Metrics\Metric(
   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.' collectFrom(Setup\Environment $environment, Setup\Metrics\Storage $storage)
 
getTentativePreconditions(Setup\Environment $environment)
 
static _getObjectsByType(string $obj_type="", int $owner=null)
 
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...
 
An environment holds resources to be used in the setup process.