ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilFileSystemMetricsCollectedObjective.php
Go to the documentation of this file.
1 <?php
2 
22 
24 {
28  protected function getTentativePreconditions(Environment $environment): array
29  {
30  return [
32  ];
33  }
34 
35  protected function collectFrom(Environment $environment, Storage $storage): void
36  {
37  $ini = $environment->getResource(Environment::RESOURCE_ILIAS_INI);
38  if ($ini) {
39  $storage->storeConfigText(
40  "data_dir",
41  $ini->readVariable("clients", "datadir"),
42  "Filesystem location where ILIAS stores data outside of direct web access."
43  );
44  }
45  }
46 }
collectFrom(Environment $environment, Storage $storage)
storeConfigText(string $key, string $value, ?string $description=null)
Base class to simplify collection of metrics.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
An environment holds resources to be used in the setup process.
Definition: Environment.php:27
$ini
Definition: raiseError.php:20