ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilStyleMetricsCollectedObjective.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;
6 
7 class ilStyleMetricsCollectedObjective extends Setup\Metrics\CollectedObjective
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->storeConfigBool(
24  "manage_system_styles",
25  $ini->readVariable("tools", "enable_system_styles_management"),
26  "Can users manage system styles from within the installation?"
27  );
28  $storage->storeConfigText(
29  "path_to_lessc",
30  $ini->readVariable("tools", "lessc"),
31  "The path to the binary that is used for compiling less."
32  );
33  }
34 }
collectFrom(Setup\Environment $environment, Setup\Metrics\Storage $storage)
getTentativePreconditions(Setup\Environment $environment)
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