19declare(strict_types=1);
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.'
Base class to simplify collection of metrics.
collectFrom(Environment $environment, Storage $storage)
getTentativePreconditions(Environment $environment)
An environment holds resources to be used in the setup process.
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
storeConfigText(string $key, string $value, ?string $description=null)