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();
127 ILIAS_ABSOLUTE_PATH .
"/public/",
150 return $this->component_repository
183 $this->component_repository->removeStateInformationOf($this->
getId());
231 $this->component_repository->setActivation($this->
getId(),
true);
239 $this->component_repository->setActivation($this->
getId(),
false);
281 if ($result ===
false) {
292 $this->component_repository->setCurrentPluginVersion(
313 $dbupdate->applyUpdate();
315 return $dbupdate->getCurrentVersion();
339 if ($this->language_handler ===
null) {
363 public function txt(
string $a_var): string
391 if (is_int(strpos($css,
"Customizing"))) {
395 return $this->
getDirectory() .
"/templates/" . $a_css_file;
403 public function addBlockFile($a_tpl, $a_var, $a_block, $a_tplname): void
405 $a_tpl->addBlockFile(
441 return $dic->raw(
'ui.renderer');
461 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()
@description Return the directory provided by ilPluginInfo, please note that this is a absolute path.
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.