ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilFileSystemMetricsCollectedObjective.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2020 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
7
9{
10 public function getTentativePreconditions(Setup\Environment $environment) : array
11 {
12 return [
14 ];
15 }
16
17 protected function collectFrom(Setup\Environment $environment, Storage $storage) : void
18 {
19 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
20 if ($ini) {
21 $storage->storeConfigText(
22 "data_dir",
23 $ini->readVariable("clients", "datadir"),
24 "Filesystem location where ILIAS stores data outside of direct web access."
25 );
26 }
27 }
28}
An exception for terminatinating execution or to throw for unit testing.
collectFrom(Setup\Environment $environment, Storage $storage)
An environment holds resources to be used in the setup process.
Definition: Environment.php:12
storeConfigText($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