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);
275 if ($result ===
false) {
288 $this->component_repository->setCurrentPluginVersion(
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);
A version number that consists of three numbers (major, minor, patch).
Class AbstractStaticPluginMainMenuProvider.
Simple value class for basic information about a component.
Simple value class for information about a plugin.
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...
Simple value class for basic information about a pluginslot.
__construct(\ilDBInterface $db, \ilComponentRepositoryWrite $component_repository, string $id)
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...
ProviderCollection $provider_collection
afterActivation()
@deprecate If you cannot get rid of the requirement to use this, adjust the activate method in your s...
exchangeUIRendererAfterInitialization(\ILIAS\DI\Container $dic)
This methods allows to replace the UI Renderer (see src/UI) of ILIAS after initialization by returnin...
activate()
This will update (if required) and activate the plugin.
isActive()
Only very little classes seem to care about this:
ilPluginLanguage $language_handler
txt(string $a_var)
Get Language Variable (prefix will be prepended automatically)
addBlockFile($a_tpl, $a_var, $a_block, $a_tplname)
@deprecate ILIAS is moving towards UI components and plugins are expected to use these components.
getVersion()
Only very little classes seem to care about this:
afterInstall()
@deprecate If you cannot get rid of the requirement to use this, adjust the install method in your su...
afterUninstall()
@deprecate If you cannot get rid of the requirement to use this, adjust the uninstall method in your ...
init()
Object initialization.
getTemplate(string $a_template, bool $a_par1=true, bool $a_par2=true)
@deprecate ILIAS is moving towards UI components and plugins are expected to use these components.
beforeUpdate()
@deprecate If you cannot get rid of the requirement to use this, adjust the update method in your sub...
beforeUninstall()
@deprecate If you cannot get rid of the requirement to use this, adjust the uninstall method in your ...
getDirectory()
Only very little classes seem to care about this:
beforeActivation()
@deprecate If you cannot get rid of the requirement to use this, adjust the activate method in your s...
loadLanguageModule()
Load language module for plugin.
ilComponentRepositoryWrite $component_repository
afterDeactivation()
@deprecate If you cannot get rid of the requirement to use this, adjust the activate method in your s...
getStyleSheetLocation(string $a_css_file)
@deprecate ILIAS is moving towards UI components and plugins are expected to use these components.
getGlobalScreenProviderCollection()
special template class to simplify handling of ITX/PEAR
static getStyleSheetLocation(string $mode="output", string $a_css_name="", string $a_css_location="")
get full style sheet file name (path inclusive) of current user
Class PluginProviderCollection.
An environment holds resources to be used in the setup process.
Writeable part of repository interface to ilComponentDataDB.
hasPluginId(string $id)
Check if a plugin exists.
Class ChatMainBarProvider \MainMenu\Provider.