1 <?php declare(strict_types=1);
31 return hash(
"sha256", self::class);
39 return "ilCtrl-structure is read and stored.";
55 $config = $environment->getConfigFor(
'database');
57 new \ilDatabaseUpdatedObjective(
$config, $this->populate_before)
66 $db = $environment->
getResource(Setup\Environment::RESOURCE_DATABASE);
68 throw new \UnachievableException(
"Need DB to store control-structure");
71 if (!defined(
"ILIAS_ABSOLUTE_PATH")) {
72 define(
"ILIAS_ABSOLUTE_PATH", dirname(__FILE__, 5));
75 $reader = $this->ctrl_reader->withDB($db);
getPreconditions(Setup\Environment $environment)
achieve(Setup\Environment $environment)
Class ilCtrlStructureReader.
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.
__construct(\ilCtrlStructureReader $ctrl_reader, bool $populate_before=true)