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 
5 use ILIAS\Setup;
7 
8 class ilFileSystemMetricsCollectedObjective extends Setup\Metrics\CollectedObjective
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 }
collectFrom(Setup\Environment $environment, Storage $storage)
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.
Definition: Environment.php:11
storeConfigText($key, string $value, string $description=null)
$ini
Definition: raiseError.php:4