ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilUtilitiesMetricsCollectedObjective.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
6
8{
9 public function getTentativePreconditions(Setup\Environment $environment) : array
10 {
11 return [
13 ];
14 }
15
16 public function collectFrom(Setup\Environment $environment, Setup\Metrics\Storage $storage) : void
17 {
18 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
19 if (!$ini) {
20 return;
21 }
22
23 $storage->storeConfigText(
24 "path_to_convert",
25 $ini->readVariable("tools", "convert"),
26 "The path to the binary from imagemagick that is used to convert images."
27 );
28 $storage->storeConfigText(
29 "path_to_zip",
30 $ini->readVariable("tools", "zip"),
31 "The path to the binary that is used for zipping files."
32 );
33 $storage->storeConfigText(
34 "path_to_unzip",
35 $ini->readVariable("tools", "unzip"),
36 "The path to the binary that is used for unzipping files."
37 );
38 }
39}
An exception for terminatinating execution or to throw for unit testing.
collectFrom(Setup\Environment $environment, Setup\Metrics\Storage $storage)
An environment holds resources to be used in the setup process.
Definition: Environment.php:12
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$ini
Definition: raiseError.php:4