◆ __construct()
ilPluginLanguageUpdatedObjective::__construct |
( |
string |
$plugin_name | ) |
|
◆ achieve()
ilPluginLanguageUpdatedObjective::achieve |
( |
Setup\Environment |
$environment | ) |
|
Definition at line 73 of file class.ilPluginLanguageUpdatedObjective.php.
References $GLOBALS, XapiProxy\$plugin, ILIAS\Setup\Environment\getResource(), and initEnvironment().
75 $component_repository = $environment->getResource(Setup\Environment::RESOURCE_COMPONENT_REPOSITORY);
76 [$ORIG_DIC, $ORIG_ilDB] = $this->
initEnvironment($environment, $component_repository);
78 $plugin = $component_repository->getPluginByName($this->plugin_name);
80 $language_handler->updateLanguages();
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
initEnvironment(Setup\Environment $environment, \ilComponentRepository $component_repository)
◆ getHash()
ilPluginLanguageUpdatedObjective::getHash |
( |
| ) |
|
◆ getLabel()
ilPluginLanguageUpdatedObjective::getLabel |
( |
| ) |
|
◆ getPreconditions()
ilPluginLanguageUpdatedObjective::getPreconditions |
( |
Setup\Environment |
$environment | ) |
|
Definition at line 60 of file class.ilPluginLanguageUpdatedObjective.php.
63 new \ilIniFilesLoadedObjective(),
64 new \ilDatabaseInitializedObjective(),
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ initEnvironment()
ilPluginLanguageUpdatedObjective::initEnvironment |
( |
Setup\Environment |
$environment, |
|
|
\ilComponentRepository |
$component_repository |
|
) |
| |
|
protected |
Definition at line 98 of file class.ilPluginLanguageUpdatedObjective.php.
References $GLOBALS, $ini, __construct(), ILIAS\UI\examples\MessageBox\Info\info(), and ilLogLevel\INFO.
Referenced by achieve().
100 $db = $environment->getResource(Setup\Environment::RESOURCE_DATABASE);
101 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
102 $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
103 $component_factory = $environment->getResource(Setup\Environment::RESOURCE_COMPONENT_FACTORY);
113 $GLOBALS[
"DIC"] =
new DI\Container();
117 $GLOBALS[
"DIC"][
"ilClientIniFile"] = $client_ini;
118 $GLOBALS[
"DIC"][
"component.factory"] = $component_factory;
123 public function isHandling(
int $a_level): bool
127 public function log(
string $a_message,
int $a_level =
ilLogLevel::INFO): void
133 public function debug(
string $a_message, array $a_context = array()): void
136 public function info(
string $a_message): void
139 public function notice(
string $a_message): void
142 public function warning(
string $a_message): void
145 public function error(
string $a_message): void
148 public function critical(
string $a_message): void
151 public function alert(
string $a_message): void
154 public function emergency(
string $a_message): void
160 public function writeLanguageLog(
string $a_topic,
string $a_lang_key): void
163 public function logStack(?
int $a_level = null,
string $a_message =
''): void
166 public function writeMemoryPeakUsage(
int $a_level): void
174 public static function getRootLogger():
ilLogger 178 public static function getLogger(
string $a_component_id):
ilLogger 186 $GLOBALS[
"DIC"][
"lng"]->lang_user =
"en";
198 public function raise($a_component, $a_event, $a_parameter =
""):
void 204 $GLOBALS[
"DIC"][
"component.repository"] = $component_repository;
219 $this->prefs[
"language"] =
"en";
223 if (!defined(
'DEBUG')) {
224 define(
'DEBUG',
false);
227 if (!defined(
"ILIAS_ABSOLUTE_PATH")) {
228 define(
"ILIAS_ABSOLUTE_PATH", dirname(__FILE__, 5));
231 if (!defined(
'SYSTEM_ROLE_ID')) {
232 define(
'SYSTEM_ROLE_ID',
'2');
235 if (!defined(
"CLIENT_ID")) {
236 define(
'CLIENT_ID', $client_ini->readVariable(
'client',
'name'));
239 if (!defined(
"ILIAS_WEB_DIR")) {
240 define(
'ILIAS_WEB_DIR', dirname(__DIR__, 4) .
"/data/");
243 return [$ORIG_DIC, $ORIG_ilDB];
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
parses the objects.xml it handles the xml-description of all ilias objects
__construct(string $plugin_name)
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Class ilRbacAdmin Core functions for role based access control.
◆ isApplicable()
ilPluginLanguageUpdatedObjective::isApplicable |
( |
Setup\Environment |
$environment | ) |
|
Definition at line 91 of file class.ilPluginLanguageUpdatedObjective.php.
93 $component_repository = $environment->getResource(Setup\Environment::RESOURCE_COMPONENT_REPOSITORY);
95 return $component_repository->getPluginByName($this->plugin_name)->supportsCLISetup();
◆ isNotable()
ilPluginLanguageUpdatedObjective::isNotable |
( |
| ) |
|
◆ $plugin_name
string ilPluginLanguageUpdatedObjective::$plugin_name |
|
protected |
The documentation for this class was generated from the following file: