ILIAS
release_8 Revision v8.19
|
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) | |
ILIAS is moving towards UI components and plugins are expected to use these components. More... | |
getStyleSheetLocation (string $a_css_file) | |
ILIAS is moving towards UI components and plugins are expected to use these components. More... | |
addBlockFile ($a_tpl, $a_var, $a_block, $a_tplname) | |
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 () | |
If you cannot get rid of the requirement to use this, adjust the install method in your subclass instead. More... | |
beforeUninstall () | |
If you cannot get rid of the requirement to use this, adjust the uninstall method in your subclass instead. More... | |
afterUninstall () | |
If you cannot get rid of the requirement to use this, adjust the uninstall method in your subclass instead. More... | |
beforeActivation () | |
If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead. More... | |
afterActivation () | |
If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead. More... | |
afterDeactivation () | |
If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead. More... | |
updateDatabase () | |
beforeUpdate () | |
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 | ||
) |
Definition at line 53 of file class.ilPlugin.php.
References $component_repository, $db, $id, ilComponentRepository\hasPluginId(), init(), and loadLanguageModule().
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().
ilPlugin::addBlockFile | ( | $a_tpl, | |
$a_var, | |||
$a_block, | |||
$a_tplname | |||
) |
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().
|
protected |
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().
|
protected |
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().
|
protected |
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().
|
protected |
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().
|
protected |
Definition at line 324 of file class.ilPlugin.php.
Referenced by update().
|
protected |
If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead.
Definition at line 243 of file class.ilPlugin.php.
Referenced by activate().
|
protected |
If you cannot get rid of the requirement to use this, adjust the uninstall method in your subclass instead.
Definition at line 194 of file class.ilPlugin.php.
Referenced by uninstall().
|
protected |
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().
|
protected |
Definition at line 341 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by getLanguageHandler().
|
protected |
Definition at line 426 of file class.ilPlugin.php.
References getComponentInfo(), getDirectory(), getId(), getPluginInfo(), and getPluginSlotInfo().
Referenced by uninstall().
ilPlugin::deactivate | ( | ) |
Definition at line 231 of file class.ilPlugin.php.
References afterDeactivation(), and getId().
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( $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.
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( $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.
|
protected |
Definition at line 149 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by clearEventListening(), getStyleSheetLocation(), and readEventListening().
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().
|
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 ilOrgUnitExtension\__construct(), ILIAS\GlobalScreen\Provider\__construct(), activate(), ilRepositoryObjectPlugin\beforeActivation(), ilRepositoryObjectPlugin\beforeUninstall(), clearEventListening(), deactivate(), ilTestSignaturePlugin\handInFileForArchiving(), ilDclFieldTypePlugin\install(), readEventListening(), uninstall(), and update().
|
protected |
Definition at line 333 of file class.ilPlugin.php.
References $language_handler, and buildLanguageHandler().
Referenced by ilRepositoryObjectPlugin\getPrefix(), loadLanguageModule(), txt(), uninstall(), and update().
ilPlugin::getMessage | ( | ) |
|
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().
ilPlugin::getPluginName | ( | ) |
Definition at line 95 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by ilRepositoryObjectPlugin\beforeActivation(), ilPreviewRendererPlugin\getRendererClassInstance(), ilPageComponentPlugin\getUIClassInstance(), and ilDclFieldTypePlugin\install().
|
protected |
Definition at line 154 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by clearEventListening(), getStyleSheetLocation(), and readEventListening().
ilPlugin::getStyleSheetLocation | ( | string | $a_css_file | ) |
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().
ilPlugin::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.
Hence, this method will be removed.
Definition at line 373 of file class.ilPlugin.php.
References getDirectory().
ilPlugin::getVersion | ( | ) |
Only very little classes seem to care about this:
Definition at line 111 of file class.ilPlugin.php.
References getPluginInfo().
|
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().
ilPlugin::install | ( | ) |
Definition at line 164 of file class.ilPlugin.php.
References afterInstall().
ilPlugin::isActive | ( | ) |
Only very little classes seem to care about this:
Definition at line 131 of file class.ilPlugin.php.
References getPluginInfo().
ilPlugin::loadLanguageModule | ( | ) |
Load language module for plugin.
Just use txt
, this will automatically load the language module.
Definition at line 351 of file class.ilPlugin.php.
References getLanguageHandler().
Referenced by __construct().
ilPlugin::needsUpdate | ( | ) |
Definition at line 136 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by activate().
|
protected |
Definition at line 413 of file class.ilPlugin.php.
References getComponentInfo(), getDirectory(), getId(), getPluginInfo(), and getPluginSlotInfo().
Referenced by update().
ilPlugin::txt | ( | string | $a_var | ) |
Get Language Variable (prefix will be prepended automatically)
Definition at line 359 of file class.ilPlugin.php.
References getLanguageHandler().
Referenced by ilTestExportPlugin\getFormat().
ilPlugin::uninstall | ( | ) |
Definition at line 169 of file class.ilPlugin.php.
References afterUninstall(), beforeUninstall(), clearEventListening(), getId(), and getLanguageHandler().
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(), and ilObjComponentSettingsGUI\update().
|
protected |
Definition at line 298 of file class.ilPlugin.php.
References $DIC, $ilDB, $lng, and getPluginInfo().
Referenced by update().
|
protected |
Definition at line 34 of file class.ilPlugin.php.
Referenced by __construct(), ilRepositoryObjectPlugin\_getIcon(), ilRepositoryObjectPlugin\_getImagePath(), ilOrgUnitExtensionPlugin\_getName(), and ilRepositoryObjectPlugin\_getName().
|
protected |
Definition at line 33 of file class.ilPlugin.php.
Referenced by __construct(), and ilRepositoryObjectPlugin\beforeActivation().
|
protected |
Definition at line 35 of file class.ilPlugin.php.
Referenced by __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().