◆ 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().
37 $db = $environment->
getResource(Environment::RESOURCE_DATABASE);
38 $settings_factory = $environment->
getResource(Environment::RESOURCE_SETTINGS_FACTORY);
40 if (!$settings_factory || !$db) {
44 $settings = $settings_factory->settingsFor(
'common');
47 'Tree Implementation',
48 $settings->get(
'main_tree_impl',
'ns') ===
'ns' ?
'Nested Set' :
'Materialized Path',
49 'The database implementation of the ILIAS repository tree.' 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.
◆ getTentativePreconditions()
ilTreeMetricsCollectedObjective::getTentativePreconditions |
( |
Environment |
$environment | ) |
|
|
protected |
The documentation for this class was generated from the following file: