4declare(strict_types=1);
 
   26        return hash(
"sha256", self::class . $this->plugin_name);
 
   34        return "Activate plugin $this->plugin_name.";
 
   51            new \ilComponentUpdatePluginObjective($this->plugin_name)
 
   62        $plugin = 
$GLOBALS[
"DIC"][
"ilPluginAdmin"]->getRawPluginDataFor($this->plugin_name);
 
   87        $plugin = 
$GLOBALS[
"DIC"][
"ilPluginAdmin"]->getRawPluginDataFor($this->plugin_name);
 
   95        return $plugin[
'activation_possible'];
 
  100        $db = $environment->getResource(Setup\Environment::RESOURCE_DATABASE);
 
  101        $plugin_admin = $environment->getResource(Setup\Environment::RESOURCE_PLUGIN_ADMIN);
 
  102        $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
 
  103        $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
 
  114        $GLOBALS[
"DIC"][
"ilClientIniFile"] = $client_ini;
 
  122            public function info($msg)
 
  125            public function warning($msg)
 
  128            public function error($msg)
 
  131            public function debug($msg, 
$a = [])
 
  142            public static function getRootLogger()
 
  146            public static function getLogger(
$a)
 
  153        $GLOBALS[
"DIC"][
"ilPluginAdmin"] = $plugin_admin;
 
  163        $GLOBALS[
"DIC"][
"ilAppEventHandler"] = 
null;
 
  171                $this->prefs[
"language"] = 
"en";
 
  175        if (!defined(
'DEBUG')) {
 
  176            define(
'DEBUG', 
false);
 
  179        if (!defined(
'SYSTEM_ROLE_ID')) {
 
  180            define(
'SYSTEM_ROLE_ID', 
'2');
 
  183        if (!defined(
"CLIENT_ID")) {
 
  184            define(
'CLIENT_ID', $client_ini->readVariable(
'client', 
'name'));
 
  187        if (!defined(
"ILIAS_WEB_DIR")) {
 
  188            define(
'ILIAS_WEB_DIR', dirname(__DIR__, 4) . 
"/data/");
 
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
isApplicable(Setup\Environment $environment)
@inheritDoc
initEnvironment(Setup\Environment $environment)
__construct(string $plugin_name)
achieve(Setup\Environment $environment)
getPreconditions(Setup\Environment $environment)
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)
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...
Class ChatMainBarProvider \MainMenu\Provider.
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples