59 throw new \LogicException(
60 "You tried to instantiate a plugin with an inexisting id '$id'." .
61 "This is odd... Please use ilComponentFactory to instantiate plugins." 86 protected function init(): void
113 return (
string) $this->
getPluginInfo()->getAvailableVersion();
143 return $this->component_repository
177 $this->component_repository->removeStateInformationOf($this->
getId());
225 $this->component_repository->setActivation($this->
getId(),
true);
233 $this->component_repository->setActivation($this->
getId(),
false);
272 $ilDB = $DIC->database();
275 if ($result ===
false) {
288 $this->component_repository->setCurrentPluginVersion(
301 $ilDB = $DIC->database();
302 $lng = $DIC->language();
309 $dbupdate->applyUpdate();
311 return $dbupdate->getCurrentVersion();
335 if ($this->language_handler === null) {
359 public function txt(
string $a_var): string
387 if (is_int(strpos($css,
"Customizing"))) {
391 return $this->
getDirectory() .
"/templates/" . $a_css_file;
399 public function addBlockFile($a_tpl, $a_var, $a_block, $a_tplname): void
401 $a_tpl->addBlockFile(
422 $reader->clearEvents();
423 $reader->startParsing();
435 $reader->clearEvents();
467 return $dic->raw(
'ui.renderer');
487 return $dic->raw($dic_key);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
loadLanguageModule()
Load language module for plugin.
getVersion()
Only very little classes seem to care about this:
hasPluginId(string $id)
Check if a plugin exists.
Class PluginProviderCollection.
Writeable part of repository interface to ilComponentDataDB.
beforeUninstall()
If you cannot get rid of the requirement to use this, adjust the uninstall method in your subclass in...
ilPluginLanguage $language_handler
Class ChatMainBarProvider .
Simple value class for basic information about a pluginslot.
ProviderCollection $provider_collection
getTemplate(string $a_template, bool $a_par1=true, bool $a_par2=true)
ILIAS is moving towards UI components and plugins are expected to use these components.
afterUninstall()
If you cannot get rid of the requirement to use this, adjust the uninstall method in your subclass in...
exchangeUIFactoryAfterInitialization(string $dic_key, \ILIAS\DI\Container $dic)
This methods allows to replace some factory for UI Components (see src/UI) of ILIAS after initializat...
activate()
This will update (if required) and activate the plugin.
static getStyleSheetLocation(string $mode="output", string $a_css_name="", string $a_css_location="")
get full style sheet file name (path inclusive) of current user
beforeActivation()
If you cannot get rid of the requirement to use this, adjust the activate method in your subclass ins...
isActive()
Only very little classes seem to care about this:
ilComponentRepositoryWrite $component_repository
init()
Object initialization.
afterInstall()
If you cannot get rid of the requirement to use this, adjust the install method in your subclass inst...
__construct(\ilDBInterface $db, \ilComponentRepositoryWrite $component_repository, string $id)
afterActivation()
If you cannot get rid of the requirement to use this, adjust the activate method in your subclass ins...
getDirectory()
Only very little classes seem to care about this:
txt(string $a_var)
Get Language Variable (prefix will be prepended automatically)
Simple value class for information about a plugin.
getGlobalScreenProviderCollection()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getStyleSheetLocation(string $a_css_file)
ILIAS is moving towards UI components and plugins are expected to use these components.
addBlockFile($a_tpl, $a_var, $a_block, $a_tplname)
ILIAS is moving towards UI components and plugins are expected to use these components.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
beforeUpdate()
If you cannot get rid of the requirement to use this, adjust the update method in your subclass inste...
Simple value class for basic information about a component.
afterDeactivation()
If you cannot get rid of the requirement to use this, adjust the activate method in your subclass ins...
exchangeUIRendererAfterInitialization(\ILIAS\DI\Container $dic)
This methods allows to replace the UI Renderer (see src/UI) of ILIAS after initialization by returnin...