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);
An exception for terminatinating execution or to throw for unit testing.
Class ilCtrlStructureReader.
__construct(\ilCtrlStructureReader $ctrl_reader, bool $populate_before=true)
getPreconditions(Setup\Environment $environment)
achieve(Setup\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.
An objective is a desired state of the system that is supposed to be created by the setup.