ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
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 () | |
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 214 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 396 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 251 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 259 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 185 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 202 of file class.ilPlugin.php.
Referenced by uninstall().
|
protected |
Definition at line 321 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 242 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 193 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 315 of file class.ilPlugin.php.
Referenced by update().
|
protected |
Definition at line 338 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by getLanguageHandler().
ilPlugin::deactivate | ( | ) |
Definition at line 230 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 451 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 431 of file class.ilPlugin.php.
|
protected |
Definition at line 149 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by getStyleSheetLocation().
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(), getStyleSheetLocation(), and getTemplate().
|
final |
Definition at line 410 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(), ilTestExportPlugin\createExportFile(), deactivate(), ilDclFieldTypePlugin\install(), uninstall(), and update().
|
protected |
Definition at line 330 of file class.ilPlugin.php.
References $language_handler, buildLanguageHandler(), and null.
Referenced by ilRepositoryObjectPlugin\getPrefix(), loadLanguageModule(), txt(), uninstall(), and update().
ilPlugin::getMessage | ( | ) |
|
protected |
Definition at line 141 of file class.ilPlugin.php.
Referenced by buildLanguageHandler(), getComponentInfo(), getDirectory(), getId(), getPluginName(), getPluginSlotInfo(), getStyleSheetLocation(), getVersion(), isActive(), needsUpdate(), update(), and updateDatabase().
ilPlugin::getPluginName | ( | ) |
Definition at line 95 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by ilRepositoryObjectPlugin\beforeActivation(), ilPageComponentPlugin\getUIClassInstance(), and ilDclFieldTypePlugin\install().
|
protected |
Definition at line 154 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by getStyleSheetLocation().
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 379 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 370 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 348 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().
ilPlugin::txt | ( | string | $a_var | ) |
Get Language Variable (prefix will be prepended automatically)
Definition at line 356 of file class.ilPlugin.php.
References getLanguageHandler().
Referenced by ilTestExportPlugin\createExportFile().
ilPlugin::uninstall | ( | ) |
Definition at line 169 of file class.ilPlugin.php.
References afterUninstall(), beforeUninstall(), getId(), and getLanguageHandler().
ilPlugin::update | ( | ) |
Definition at line 268 of file class.ilPlugin.php.
References $DIC, $ilDB, afterUpdate(), beforeUpdate(), getId(), getLanguageHandler(), getPluginInfo(), and updateDatabase().
Referenced by activate(), and ilObjComponentSettingsGUI\update().
|
protected |
Definition at line 295 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().