ILIAS  release_8 Revision v8.24
class.ilFileSystemMetricsCollectedObjective.php
Go to the documentation of this file.
1<?php
2
5
6/******************************************************************************
7 *
8 * This file is part of ILIAS, a powerful learning management system.
9 *
10 * ILIAS is licensed with the GPL-3.0, you should have received a copy
11 * of said license along with the source code.
12 *
13 * If this is not the case or you just want to try ILIAS, you'll find
14 * us at:
15 * https://www.ilias.de
16 * https://github.com/ILIAS-eLearning
17 *
18 *****************************************************************************/
20{
24 protected function getTentativePreconditions(Setup\Environment $environment): array
25 {
26 return [
28 ];
29 }
30
31 protected function collectFrom(Setup\Environment $environment, Storage $storage): void
32 {
33 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
34 if ($ini) {
35 $storage->storeConfigText(
36 "data_dir",
37 $ini->readVariable("clients", "datadir"),
38 "Filesystem location where ILIAS stores data outside of direct web access."
39 );
40 }
41 }
42}
collectFrom(Setup\Environment $environment, Storage $storage)
An environment holds resources to be used in the setup process.
Definition: Environment.php:28
storeConfigText(string $key, string $value, string $description=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$ini
Definition: raiseError.php:4