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