19declare(strict_types=1);
39 return hash(
"sha256", self::class . $this->plugin_name);
47 return "Update plugin language $this->plugin_name.";
64 new \ilIniFilesLoadedObjective(),
65 new \ilDatabaseInitializedObjective(),
76 $component_repository = $environment->
getResource(
Setup\Environment::RESOURCE_COMPONENT_REPOSITORY);
77 [$ORIG_DIC, $ORIG_ilDB] = $this->
initEnvironment($environment, $component_repository);
79 $plugin = $component_repository->getPluginByName($this->plugin_name);
81 $language_handler->updateLanguages();
94 $component_repository = $environment->getResource(
Setup\Environment::RESOURCE_COMPONENT_REPOSITORY);
96 return $component_repository->getPluginByName($this->plugin_name)->supportsCLISetup();
101 $db = $environment->getResource(
Setup\Environment::RESOURCE_DATABASE);
102 $ini = $environment->getResource(
Setup\Environment::RESOURCE_ILIAS_INI);
103 $client_ini = $environment->getResource(
Setup\Environment::RESOURCE_CLIENT_INI);
104 $component_factory = $environment->getResource(
Setup\Environment::RESOURCE_COMPONENT_FACTORY);
118 $GLOBALS[
"DIC"][
"ilClientIniFile"] = $client_ini;
124 public static function getRootLogger():
ilLogger
128 public static function getLogger(
string $a_component_id):
ilLogger
136 $GLOBALS[
"DIC"][
"lng"]->lang_user =
"en";
148 public function raise($a_component, $a_event, $a_parameter =
""):
void
154 $GLOBALS[
"DIC"][
"component.repository"] = $component_repository;
155 $GLOBALS[
"DIC"][
"component.factory"] = $component_factory;
170 $this->prefs[
"language"] =
"en";
174 if (!defined(
'DEBUG')) {
175 define(
'DEBUG',
false);
178 if (!defined(
"ILIAS_ABSOLUTE_PATH")) {
179 define(
"ILIAS_ABSOLUTE_PATH", dirname(__FILE__, 6));
182 if (!defined(
'SYSTEM_ROLE_ID')) {
183 define(
'SYSTEM_ROLE_ID',
'2');
186 if (!defined(
"CLIENT_ID")) {
187 define(
'CLIENT_ID', $client_ini->readVariable(
'client',
'name'));
190 if (!defined(
"ILIAS_WEB_DIR")) {
191 define(
'ILIAS_WEB_DIR',
$ini->readVariable(
'clients',
'path'));
194 return [$ORIG_DIC, $ORIG_ilDB];
Customizing of pimple-DIC for ILIAS.
Component logger with individual log levels by component id.
parses the objects.xml it handles the xml-description of all ilias objects
initEnvironment(Setup\Environment $environment, \ilComponentRepository $component_repository)
achieve(Setup\Environment $environment)
isApplicable(Setup\Environment $environment)
@inheritDoc
getPreconditions(Setup\Environment $environment)
__construct(string $plugin_name)
Class ilRbacAdmin Core functions for role based access control.
class ilRbacReview Contains Review functions of core Rbac.
language handling for setup
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
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.
Readable part of repository interface to ilComponentDataDB.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...