ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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) {
40 "data_dir",
41 $ini->readVariable("clients", "datadir"),
42 "Filesystem location where ILIAS stores data outside of direct web access."
43 );
44 }
45 }
46}
Base class to simplify collection of metrics.
collectFrom(Environment $environment, Storage $storage)
An environment holds resources to be used in the setup process.
Definition: Environment.php:28
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
storeConfigText(string $key, string $value, ?string $description=null)
$ini
Definition: raiseError.php:20