1<?
php declare(strict_types=1);
22 return hash(
"sha256", self::class . $this->plugin_name);
30 return "Update plugin language $this->plugin_name.";
58 $plugin =
$GLOBALS[
"DIC"][
"ilPluginAdmin"]->getRawPluginDataFor($this->plugin_name);
67 $pl->updateLanguages();
83 $plugin =
$GLOBALS[
"DIC"][
"ilPluginAdmin"]->getRawPluginDataFor($this->plugin_name);
97 $db = $environment->getResource(Setup\Environment::RESOURCE_DATABASE);
98 $plugin_admin = $environment->getResource(Setup\Environment::RESOURCE_PLUGIN_ADMIN);
99 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
100 $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
114 $GLOBALS[
"DIC"][
"ilClientIniFile"] = $client_ini;
119 public function isHandling($a_level)
129 public function debug($a_message, $a_context = array())
132 public function info($a_message)
135 public function notice($a_message)
138 public function warning($a_message)
141 public function error($a_message)
144 public function critical($a_message)
147 public function alert($a_message)
150 public function emergency($a_message)
156 public function writeLanguageLog($a_topic, $a_lang_key)
159 public function logStack($a_level =
null, $a_message =
'')
162 public function writeMemoryPeakUsage($a_level)
173 public function info($msg)
176 public function warning($msg)
179 public function error($msg)
182 public function debug($msg,
$a = [])
193 public static function getRootLogger()
197 public static function getLogger(
$a)
205 $GLOBALS[
"DIC"][
"ilPluginAdmin"] = $plugin_admin;
218 public function raise($a_component, $a_event, $a_parameter =
"") :
void
240 $this->prefs[
"language"] =
"en";
244 if (!defined(
'DEBUG')) {
245 define(
'DEBUG',
false);
248 if (!defined(
"ILIAS_ABSOLUTE_PATH")) {
249 define(
"ILIAS_ABSOLUTE_PATH", dirname(__FILE__, 5));
252 if (!defined(
'SYSTEM_ROLE_ID')) {
253 define(
'SYSTEM_ROLE_ID',
'2');
256 if (!defined(
"CLIENT_ID")) {
257 define(
'CLIENT_ID', $client_ini->readVariable(
'client',
'name'));
260 if (!defined(
"ILIAS_WEB_DIR")) {
261 define(
'ILIAS_WEB_DIR', dirname(__DIR__, 4) .
"/data/");
264 return [$ORIG_DIC, $ORIG_ilDB];
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
An exception for terminatinating execution or to throw for unit testing.
Customizing of pimple-DIC for ILIAS.
error($a_errmsg)
set error message @access public
initEnvironment(Setup\Environment $environment)
isApplicable(Setup\Environment $environment)
@inheritDoc
achieve(Setup\Environment $environment)
getPreconditions(Setup\Environment $environment)
__construct(string $plugin_name)
This class provides processing control methods.
Component logger with individual log levels by component id.
parses the objects.xml it handles the xml-description of all ilias objects
static getPluginObject(string $a_ctype, string $a_cname, string $a_slot_id, string $a_pname)
Class ilRbacAdmin Core functions for role based access control.
class ilRbacReview Contains Review functions of core Rbac.
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.
An objective is a desired state of the system that is supposed to be created by the setup.
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...
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples