4declare(strict_types=1);
 
   27        return hash(
"sha256", self::class . $this->plugin_name);
 
   35        return "Update plugin $this->plugin_name.";
 
   53            new \ilIniFilesLoadedObjective(),
 
   54            new \ilDatabaseInitializedObjective(),
 
   55            new \ilComponentPluginAdminInitObjective()
 
   66        $plugin = 
$GLOBALS[
"DIC"][
"ilPluginAdmin"]->getRawPluginDataFor($this->plugin_name);
 
   92        $plugin = 
$GLOBALS[
"DIC"][
"ilPluginAdmin"]->getRawPluginDataFor($this->plugin_name);
 
  101        return $plugin[
'needs_update'];
 
  106        $db = $environment->getResource(Setup\Environment::RESOURCE_DATABASE);
 
  107        $plugin_admin = $environment->getResource(Setup\Environment::RESOURCE_PLUGIN_ADMIN);
 
  108        $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
 
  109        $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
 
  123        $GLOBALS[
"DIC"][
"ilClientIniFile"] = $client_ini;
 
  128            public function isHandling($a_level)
 
  138            public function debug($a_message, $a_context = array())
 
  141            public function info($a_message)
 
  144            public function notice($a_message)
 
  147            public function warning($a_message)
 
  150            public function error($a_message)
 
  153            public function critical($a_message)
 
  156            public function alert($a_message)
 
  159            public function emergency($a_message)
 
  165            public function writeLanguageLog($a_topic, $a_lang_key)
 
  168            public function logStack($a_level = 
null, $a_message = 
'')
 
  171            public function writeMemoryPeakUsage($a_level)
 
  182            public function info($msg)
 
  185            public function warning($msg)
 
  188            public function error($msg)
 
  191            public function debug($msg, 
$a = [])
 
  202            public static function getRootLogger()
 
  206            public static function getLogger(
$a)
 
  214        $GLOBALS[
"DIC"][
"ilPluginAdmin"] = $plugin_admin;
 
  227            public function raise($a_component, $a_event, $a_parameter = 
"") : 
void 
  249                $this->prefs[
"language"] = 
"en";
 
  253        if (!defined(
'DEBUG')) {
 
  254            define(
'DEBUG', 
false);
 
  257        if (!defined(
"ILIAS_ABSOLUTE_PATH")) {
 
  258            define(
"ILIAS_ABSOLUTE_PATH", dirname(__FILE__, 5));
 
  261        if (!defined(
'SYSTEM_ROLE_ID')) {
 
  262            define(
'SYSTEM_ROLE_ID', 
'2');
 
  265        if (!defined(
"CLIENT_ID")) {
 
  266            define(
'CLIENT_ID', $client_ini->readVariable(
'client', 
'name'));
 
  269        if (!defined(
"ILIAS_WEB_DIR")) {
 
  270            define(
'ILIAS_WEB_DIR', dirname(__DIR__, 4) . 
"/data/");
 
  273        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.
Read the client id of the installation from the data directory.
error($a_errmsg)
set error message @access public
isApplicable(Setup\Environment $environment)
@inheritDoc
initEnvironment(Setup\Environment $environment)
getPreconditions(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)
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