ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTreeMetricsCollectedObjective Class Reference
+ Inheritance diagram for ilTreeMetricsCollectedObjective:
+ Collaboration diagram for ilTreeMetricsCollectedObjective:

Protected Member Functions

 getTentativePreconditions (Environment $environment)
 
 collectFrom (Environment $environment, Storage $storage)
 
- Protected Member Functions inherited from ILIAS\Setup\Metrics\CollectedObjective
 collectFrom (Setup\Environment $environment, Storage $storage)
 Attempt to gather metrics based on the provided environment. More...
 
 getTentativePreconditions (Setup\Environment $environment)
 Give preconditions that might or might not be fullfilled. More...
 

Additional Inherited Members

- Public Member Functions inherited from ILIAS\Setup\Metrics\CollectedObjective
 __construct (Storage $storage)
 
 getHash ()
 Get a hash for this objective. More...
 
 getLabel ()
 Get a label that describes this objective. More...
 
 isNotable ()
 Get to know if this is an interesting objective for a human. More...
 
 getPreconditions (Setup\Environment $environment)
 
 achieve (Setup\Environment $environment)
 
 isApplicable (Setup\Environment $environment)
 
- Public Member Functions inherited from ILIAS\Setup\Objective
 getPreconditions (Environment $environment)
 Objectives might depend on other objectives. More...
 
 achieve (Environment $environment)
 Objectives can be achieved. More...
 
 isApplicable (Environment $environment)
 Get to know whether the objective is applicable. More...
 
- Protected Attributes inherited from ILIAS\Setup\Metrics\CollectedObjective
Storage $storage
 

Detailed Description

Definition at line 25 of file class.ilTreeMetricsCollectedObjective.php.

Member Function Documentation

◆ collectFrom()

ilTreeMetricsCollectedObjective::collectFrom ( Environment  $environment,
Storage  $storage 
)
protected

Definition at line 35 of file class.ilTreeMetricsCollectedObjective.php.

References ILIAS\Setup\Environment\getResource(), and ILIAS\Setup\Metrics\Storage\storeConfigText().

35  : void
36  {
37  $db = $environment->getResource(Environment::RESOURCE_DATABASE);
38  $settings_factory = $environment->getResource(Environment::RESOURCE_SETTINGS_FACTORY);
39 
40  if (!$settings_factory || !$db) {
41  return;
42  }
43 
44  $settings = $settings_factory->settingsFor('common');
45 
46  $storage->storeConfigText(
47  'Tree Implementation',
48  $settings->get('main_tree_impl', 'ns') === 'ns' ? 'Nested Set' : 'Materialized Path',
49  'The database implementation of the ILIAS repository tree.'
50  );
51  }
storeConfigText(string $key, string $value, ?string $description=null)
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
+ Here is the call graph for this function:

◆ getTentativePreconditions()

ilTreeMetricsCollectedObjective::getTentativePreconditions ( Environment  $environment)
protected

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