ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilStyleMetricsCollectedObjective.php
Go to the documentation of this file.
1 <?php
2 
19 use ILIAS\Setup;
20 
21 class ilStyleMetricsCollectedObjective extends Setup\Metrics\CollectedObjective
22 {
23  public function getTentativePreconditions(Setup\Environment $environment): array
24  {
25  return [
27  ];
28  }
29 
30  public function collectFrom(Setup\Environment $environment, Setup\Metrics\Storage $storage): void
31  {
32  $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
33  if (!$ini) {
34  return;
35  }
36 
37  $storage->storeConfigBool(
38  "manage_system_styles",
39  $ini->readVariable("tools", "enable_system_styles_management"),
40  "Can users manage system styles from within the installation?"
41  );
42  $storage->storeConfigText(
43  "path_to_scss",
44  $ini->readVariable("tools", "scss"),
45  "The path to the binary that is used for compiling scss."
46  );
47  }
48 }
collectFrom(Setup\Environment $environment, Setup\Metrics\Storage $storage)
getTentativePreconditions(Setup\Environment $environment)
Storage is simple key/value store without further schema definition.
Definition: Storage.php:29
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:20