1 <?php declare(strict_types=1);
32 return hash(
"sha256", self::class);
40 return "ilCtrl-structure is read and stored.";
57 new \ilDatabaseInitializedObjective()
66 $db = $environment->
getResource(Setup\Environment::RESOURCE_DATABASE);
68 throw new Setup\UnachievableException(
"Need DB to store control-structure");
71 if (!defined(
"ILIAS_ABSOLUTE_PATH")) {
72 define(
"ILIAS_ABSOLUTE_PATH", dirname(__FILE__, 5));
80 $GLOBALS[
"DIC"] =
new DI\Container();
83 $reader = $this->ctrl_reader->withDB($db);
84 $reader->executed =
false;
85 $reader->readStructure(
true);
97 $db = $environment->getResource(Setup\Environment::RESOURCE_DATABASE);
99 throw new Setup\UnachievableException(
"Need DB to read control-structure");
102 if (!defined(
"ILIAS_ABSOLUTE_PATH")) {
103 define(
"ILIAS_ABSOLUTE_PATH", dirname(__FILE__, 5));
106 $reader = $this->ctrl_reader->withDB($db);
108 return !$reader->executed;
getPreconditions(Setup\Environment $environment)
achieve(Setup\Environment $environment)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilCtrlStructureReader.
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An environment holds resources to be used in the setup process.
isApplicable(Setup\Environment $environment)
__construct(\ilCtrlStructureReader $ctrl_reader, bool $populate_before=true)