ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSetupMetricsCollectedObjective Class Reference
+ Inheritance diagram for ilSetupMetricsCollectedObjective:
+ Collaboration diagram for ilSetupMetricsCollectedObjective:

Public Member Functions

 getLabel ()
 
 getTentativePreconditions (Setup\Environment $environment)
 
 collectFrom (Setup\Environment $environment, Setup\Metrics\Storage $storage)
 

Detailed Description

Definition at line 7 of file class.ilSetupMetricsCollectedObjective.php.

Member Function Documentation

◆ collectFrom()

ilSetupMetricsCollectedObjective::collectFrom ( Setup\Environment  $environment,
Setup\Metrics\Storage  $storage 
)

Definition at line 21 of file class.ilSetupMetricsCollectedObjective.php.

References $client_id, and $ini.

21  : void
22  {
23  $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
24  $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
25  $storage->storeStableBool(
26  "is_installed",
27  $ini !== null && $client_ini !== null,
28  "Are there any indications an installation was performed?"
29  );
30  $client_id = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_ID);
31  if ($client_id) {
32  $storage->storeConfigText(
33  "client_id",
34  $client_id,
35  "Id of the ILIAS client."
36  );
37  }
38  }
$client_id
Definition: webdav.php:17
$ini
Definition: raiseError.php:4

◆ getLabel()

ilSetupMetricsCollectedObjective::getLabel ( )

Definition at line 9 of file class.ilSetupMetricsCollectedObjective.php.

9  : string
10  {
11  return "Collect common metrics for the ILIAS installation.";
12  }

◆ getTentativePreconditions()

ilSetupMetricsCollectedObjective::getTentativePreconditions ( Setup\Environment  $environment)

Definition at line 14 of file class.ilSetupMetricsCollectedObjective.php.

14  : array
15  {
16  return [
18  ];
19  }

The documentation for this class was generated from the following file: