|
ILIAS
release_8 Revision v8.24
|
Inheritance diagram for ilPlugin:
Collaboration diagram for ilPlugin:Public Member Functions | |
| getMessage () | |
| __construct (\ilDBInterface $db, \ilComponentRepositoryWrite $component_repository, string $id) | |
| getPluginName () | |
| getId () | |
| getVersion () | |
| Only very little classes seem to care about this: More... | |
| getDirectory () | |
| Only very little classes seem to care about this: More... | |
| isActive () | |
| Only very little classes seem to care about this: More... | |
| needsUpdate () | |
| install () | |
| uninstall () | |
| activate () | |
| This will update (if required) and activate the plugin. More... | |
| deactivate () | |
| update () | |
| loadLanguageModule () | |
| Load language module for plugin. More... | |
| txt (string $a_var) | |
| Get Language Variable (prefix will be prepended automatically) More... | |
| 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. More... | |
| getStyleSheetLocation (string $a_css_file) | |
| @deprecate ILIAS is moving towards UI components and plugins are expected to use these components. More... | |
| addBlockFile ($a_tpl, $a_var, $a_block, $a_tplname) | |
| @deprecate ILIAS is moving towards UI components and plugins are expected to use these components. More... | |
| getGlobalScreenProviderCollection () | |
| exchangeUIRendererAfterInitialization (\ILIAS\DI\Container $dic) | |
| This methods allows to replace the UI Renderer (see src/UI) of ILIAS after initialization by returning a closure returning a custom renderer. More... | |
| exchangeUIFactoryAfterInitialization (string $dic_key, \ILIAS\DI\Container $dic) | |
| This methods allows to replace some factory for UI Components (see src/UI) of ILIAS after initialization by returning a closure returning a custom factory. More... | |
Protected Member Functions | |
| init () | |
| Object initialization. More... | |
| getPluginInfo () | |
| getComponentInfo () | |
| getPluginSlotInfo () | |
| afterInstall () | |
| @deprecate If you cannot get rid of the requirement to use this, adjust the install method in your subclass instead. More... | |
| beforeUninstall () | |
| @deprecate If you cannot get rid of the requirement to use this, adjust the uninstall method in your subclass instead. More... | |
| afterUninstall () | |
| @deprecate If you cannot get rid of the requirement to use this, adjust the uninstall method in your subclass instead. More... | |
| beforeActivation () | |
| @deprecate If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead. More... | |
| afterActivation () | |
| @deprecate If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead. More... | |
| afterDeactivation () | |
| @deprecate If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead. More... | |
| updateDatabase () | |
| beforeUpdate () | |
| @deprecate If you cannot get rid of the requirement to use this, adjust the update method in your subclass instead. More... | |
| afterUpdate () | |
| getLanguageHandler () | |
| buildLanguageHandler () | |
| readEventListening () | |
| clearEventListening () | |
Protected Attributes | |
| ilDBInterface | $db |
| ilComponentRepositoryWrite | $component_repository |
| string | $id |
| ilPluginLanguage | $language_handler = null |
| bool | $lang_initialised = false |
| ProviderCollection | $provider_collection |
| string | $message = '' |
Definition at line 31 of file class.ilPlugin.php.
| ilPlugin::__construct | ( | \ilDBInterface | $db, |
| \ilComponentRepositoryWrite | $component_repository, | ||
| string | $id | ||
| ) |
Reimplemented in ilTestExportPlugin.
Definition at line 53 of file class.ilPlugin.php.
References $component_repository, $db, $id, ilComponentRepository\hasPluginId(), init(), and loadLanguageModule().
Here is the call graph for this function:| ilPlugin::activate | ( | ) |
This will update (if required) and activate the plugin.
Definition at line 215 of file class.ilPlugin.php.
References afterActivation(), beforeActivation(), getId(), needsUpdate(), and update().
Here is the call graph for this function:| ilPlugin::addBlockFile | ( | $a_tpl, | |
| $a_var, | |||
| $a_block, | |||
| $a_tplname | |||
| ) |
@deprecate ILIAS is moving towards UI components and plugins are expected to use these components.
Hence, this method will be removed.
Definition at line 399 of file class.ilPlugin.php.
References getDirectory().
Here is the call graph for this function:
|
protected |
@deprecate If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead.
Definition at line 252 of file class.ilPlugin.php.
Referenced by activate().
Here is the caller graph for this function:
|
protected |
@deprecate If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead.
Definition at line 260 of file class.ilPlugin.php.
Referenced by deactivate().
Here is the caller graph for this function:
|
protected |
@deprecate If you cannot get rid of the requirement to use this, adjust the install method in your subclass instead.
Definition at line 186 of file class.ilPlugin.php.
Referenced by install().
Here is the caller graph for this function:
|
protected |
@deprecate If you cannot get rid of the requirement to use this, adjust the uninstall method in your subclass instead.
Definition at line 203 of file class.ilPlugin.php.
Referenced by uninstall().
Here is the caller graph for this function:
|
protected |
Definition at line 324 of file class.ilPlugin.php.
Referenced by update().
Here is the caller graph for this function:
|
protected |
@deprecate If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead.
Reimplemented in ilRepositoryObjectPlugin.
Definition at line 243 of file class.ilPlugin.php.
Referenced by activate().
Here is the caller graph for this function:
|
protected |
@deprecate If you cannot get rid of the requirement to use this, adjust the uninstall method in your subclass instead.
Reimplemented in ilRepositoryObjectPlugin.
Definition at line 194 of file class.ilPlugin.php.
Referenced by uninstall().
Here is the caller graph for this function:
|
protected |
@deprecate If you cannot get rid of the requirement to use this, adjust the update method in your subclass instead.
Definition at line 318 of file class.ilPlugin.php.
Referenced by update().
Here is the caller graph for this function:
|
protected |
Definition at line 341 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by getLanguageHandler().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 426 of file class.ilPlugin.php.
References getComponentInfo(), getDirectory(), getId(), getPluginInfo(), and getPluginSlotInfo().
Referenced by uninstall().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPlugin::deactivate | ( | ) |
Definition at line 231 of file class.ilPlugin.php.
References afterDeactivation(), and getId().
Here is the call graph for this function:| ilPlugin::exchangeUIFactoryAfterInitialization | ( | string | $dic_key, |
| \ILIAS\DI\Container | $dic | ||
| ) |
This methods allows to replace some factory for UI Components (see src/UI) of ILIAS after initialization by returning a closure returning a custom factory.
E.g:
if($key == "ui.factory.nameOfFactory"){ return function(\ILIAS\DI\Container $c){ return new CustomFactory($c['ui.signal_generator'],$c['ui.factory.maincontrols.slate']); }; }
Note: Note that plugins might conflict by replacing the same factory, so only use if you are sure, that no other plugin will do this for a given context.
Definition at line 484 of file class.ilPlugin.php.
References $dic.
| ilPlugin::exchangeUIRendererAfterInitialization | ( | \ILIAS\DI\Container | $dic | ) |
This methods allows to replace the UI Renderer (see src/UI) of ILIAS after initialization by returning a closure returning a custom renderer.
E.g:
return function(\ILIAS\DI\Container $c){ return new CustomRenderer(); };
Note: Note that plugins might conflict by replacing the renderer, so only use if you are sure, that no other plugin will do this for a given context.
Definition at line 464 of file class.ilPlugin.php.
References $dic.
|
protected |
Definition at line 149 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by clearEventListening(), getStyleSheetLocation(), and readEventListening().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPlugin::getDirectory | ( | ) |
Only very little classes seem to care about this:
Definition at line 121 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by addBlockFile(), clearEventListening(), getStyleSheetLocation(), getTemplate(), and readEventListening().
Here is the call graph for this function:
Here is the caller graph for this function:
|
final |
Definition at line 443 of file class.ilPlugin.php.
References $provider_collection.
| ilPlugin::getId | ( | ) |
Definition at line 100 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by ILIAS\GlobalScreen\Provider\__construct(), activate(), ilRepositoryObjectPlugin\beforeActivation(), ilRepositoryObjectPlugin\beforeUninstall(), clearEventListening(), deactivate(), ilTestSignaturePlugin\handInFileForArchiving(), ilDclFieldTypePlugin\install(), readEventListening(), uninstall(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 333 of file class.ilPlugin.php.
References $language_handler, and buildLanguageHandler().
Referenced by ilRepositoryObjectPlugin\getPrefix(), loadLanguageModule(), txt(), uninstall(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPlugin::getMessage | ( | ) |
Definition at line 44 of file class.ilPlugin.php.
References $message.
|
protected |
Definition at line 141 of file class.ilPlugin.php.
Referenced by buildLanguageHandler(), clearEventListening(), getComponentInfo(), getDirectory(), getId(), getPluginName(), getPluginSlotInfo(), getStyleSheetLocation(), getVersion(), isActive(), needsUpdate(), readEventListening(), update(), and updateDatabase().
Here is the caller graph for this function:| ilPlugin::getPluginName | ( | ) |
Reimplemented in ExamplePlugin, and ExamplePlugin.
Definition at line 95 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by ilPreviewRendererPlugin\getRendererClassInstance(), ilPageComponentPlugin\getUIClassInstance(), and ilDclFieldTypePlugin\install().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 154 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by clearEventListening(), getStyleSheetLocation(), and readEventListening().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPlugin::getStyleSheetLocation | ( | string | $a_css_file | ) |
@deprecate ILIAS is moving towards UI components and plugins are expected to use these components.
Hence, this method will be removed.
Definition at line 382 of file class.ilPlugin.php.
References getComponentInfo(), getDirectory(), getPluginInfo(), getPluginSlotInfo(), and ilUtil\getStyleSheetLocation().
Here is the call graph for this function:@deprecate ILIAS is moving towards UI components and plugins are expected to use these components.
Hence, this method will be removed.
Definition at line 373 of file class.ilPlugin.php.
References getDirectory().
Here is the call graph for this function:| ilPlugin::getVersion | ( | ) |
Only very little classes seem to care about this:
Definition at line 111 of file class.ilPlugin.php.
References getPluginInfo().
Here is the call graph for this function:
|
protected |
Object initialization.
Can be overwritten by plugin class (and should be made protected)
TODO: Maybe this should be removed or be documented better. This is called during __construct. If this contains expensive stuff this will be bad for overall system performance, because Plugins tend to be constructed a lot.
Definition at line 86 of file class.ilPlugin.php.
Referenced by __construct().
Here is the caller graph for this function:| ilPlugin::install | ( | ) |
Reimplemented in ilDclFieldTypePlugin.
Definition at line 164 of file class.ilPlugin.php.
References afterInstall().
Here is the call graph for this function:| ilPlugin::isActive | ( | ) |
Only very little classes seem to care about this:
Definition at line 131 of file class.ilPlugin.php.
References getPluginInfo().
Here is the call graph for this function:| ilPlugin::loadLanguageModule | ( | ) |
Load language module for plugin.
@deprecate Just use txt, this will automatically load the language module.
Definition at line 351 of file class.ilPlugin.php.
References getLanguageHandler().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPlugin::needsUpdate | ( | ) |
Definition at line 136 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by activate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 413 of file class.ilPlugin.php.
References getComponentInfo(), getDirectory(), getId(), getPluginInfo(), and getPluginSlotInfo().
Referenced by update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPlugin::txt | ( | string | $a_var | ) |
Get Language Variable (prefix will be prepended automatically)
Definition at line 359 of file class.ilPlugin.php.
References getLanguageHandler().
Here is the call graph for this function:| ilPlugin::uninstall | ( | ) |
Definition at line 169 of file class.ilPlugin.php.
References afterUninstall(), beforeUninstall(), clearEventListening(), getId(), and getLanguageHandler().
Here is the call graph for this function:| ilPlugin::update | ( | ) |
Definition at line 269 of file class.ilPlugin.php.
References $DIC, $ilDB, afterUpdate(), beforeUpdate(), getId(), getLanguageHandler(), getPluginInfo(), readEventListening(), and updateDatabase().
Referenced by activate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 298 of file class.ilPlugin.php.
References $DIC, $ilDB, $lng, and getPluginInfo().
Referenced by update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 34 of file class.ilPlugin.php.
Referenced by ilTestExportPlugin\__construct(), __construct(), ilRepositoryObjectPlugin\_getIcon(), ilRepositoryObjectPlugin\_getImagePath(), ilOrgUnitExtensionPlugin\_getName(), and ilRepositoryObjectPlugin\_getName().
|
protected |
Definition at line 33 of file class.ilPlugin.php.
Referenced by ilTestExportPlugin\__construct(), __construct(), and ilRepositoryObjectPlugin\beforeActivation().
|
protected |
Definition at line 35 of file class.ilPlugin.php.
Referenced by ilTestExportPlugin\__construct(), and __construct().
|
protected |
Definition at line 37 of file class.ilPlugin.php.
|
protected |
Definition at line 36 of file class.ilPlugin.php.
Referenced by getLanguageHandler().
|
protected |
Definition at line 39 of file class.ilPlugin.php.
Referenced by getMessage().
|
protected |
Definition at line 38 of file class.ilPlugin.php.
Referenced by getGlobalScreenProviderCollection().