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
176 $this->component_repository->removeStateInformationOf($this->
getId());
224 $this->component_repository->setActivation($this->
getId(),
true);
232 $this->component_repository->setActivation($this->
getId(),
false);
274 if ($result ===
false) {
285 $this->component_repository->setCurrentPluginVersion(
306 $dbupdate->applyUpdate();
308 return $dbupdate->getCurrentVersion();
332 if ($this->language_handler ===
null) {
356 public function txt(
string $a_var): string
384 if (is_int(strpos($css,
"Customizing"))) {
388 return $this->
getDirectory() .
"/templates/" . $a_css_file;
396 public function addBlockFile($a_tpl, $a_var, $a_block, $a_tplname): void
398 $a_tpl->addBlockFile(
434 return $dic->raw(
'ui.renderer');
454 return $dic->raw($dic_key);
Class AbstractStaticPluginMainMenuProvider.
Simple value class for basic information about a component.
Simple value class for information about a plugin.
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="")
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.
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.