ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilFileSystemMetricsCollectedObjective.php
Go to the documentation of this file.
1 <?php
2 
19 use ILIAS\Setup;
21 
22 class ilFileSystemMetricsCollectedObjective extends Setup\Metrics\CollectedObjective
23 {
27  protected function getTentativePreconditions(Setup\Environment $environment): array
28  {
29  return [
31  ];
32  }
33 
34  protected function collectFrom(Setup\Environment $environment, Storage $storage): void
35  {
36  $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
37  if ($ini) {
38  $storage->storeConfigText(
39  "data_dir",
40  $ini->readVariable("clients", "datadir"),
41  "Filesystem location where ILIAS stores data outside of direct web access."
42  );
43  }
44  }
45 }
storeConfigText(string $key, string $value, string $description=null)
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:27
$ini
Definition: raiseError.php:4