4declare(strict_types=1);
 
   27        return hash(
"sha256", self::class . $this->plugin_name);
 
   35        return "Install plugin $this->plugin_name.";
 
   53            new \ilIniFilesPopulatedObjective(),
 
   54            new \ilDatabaseUpdatedObjective(),
 
   55            new \ilComponentPluginAdminInitObjective()
 
   66        $plugin = 
$GLOBALS[
"DIC"][
"ilPluginAdmin"]->getRawPluginDataFor($this->plugin_name);
 
   91        $plugin = 
$GLOBALS[
"DIC"][
"ilPluginAdmin"]->getRawPluginDataFor($this->plugin_name);
 
  104        $db = $environment->getResource(Setup\Environment::RESOURCE_DATABASE);
 
  105        $plugin_admin = $environment->getResource(Setup\Environment::RESOURCE_PLUGIN_ADMIN);
 
  106        $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
 
  107        $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
 
  118        $GLOBALS[
"DIC"][
"ilClientIniFile"] = $client_ini;
 
  126            public function info($msg)
 
  129            public function warning($msg)
 
  132            public function error($msg)
 
  135            public function debug($msg, 
$a = [])
 
  146            public static function getRootLogger()
 
  150            public static function getLogger(
$a)
 
  158        $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.
Read the client id of the installation from the data directory.
error($a_errmsg)
set error message @access public
isApplicable(Setup\Environment $environment)
@inheritDoc
getPreconditions(Setup\Environment $environment)
initEnvironment(Setup\Environment $environment)
__construct(string $plugin_name)
achieve(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)
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