|
ILIAS
trunk Revision v12.0_alpha-1221-g4e438232683
|
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 () | |
| @description Return the directory provided by ilPluginInfo, please note that this is a absolute path. More... | |
| getRelativeDirectory () | |
| 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 () | |
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 221 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 403 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 258 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 266 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 192 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 209 of file class.ilPlugin.php.
Referenced by uninstall().
Here is the caller graph for this function:
|
protected |
Definition at line 328 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 249 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 200 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 322 of file class.ilPlugin.php.
Referenced by update().
Here is the caller graph for this function:
|
protected |
Definition at line 345 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:| ilPlugin::deactivate | ( | ) |
Definition at line 237 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 458 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 438 of file class.ilPlugin.php.
References $dic.
|
protected |
Definition at line 156 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by getStyleSheetLocation().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPlugin::getDirectory | ( | ) |
@description Return the directory provided by ilPluginInfo, please note that this is a absolute path.
Definition at line 119 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by addBlockFile(), getStyleSheetLocation(), and getTemplate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
final |
Definition at line 417 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(), ilTestExportPlugin\createExportFile(), deactivate(), ilDclFieldTypePlugin\install(), uninstall(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 337 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 148 of file class.ilPlugin.php.
Referenced by buildLanguageHandler(), getComponentInfo(), getDirectory(), getId(), getPluginName(), getPluginSlotInfo(), getRelativeDirectory(), getStyleSheetLocation(), getVersion(), isActive(), needsUpdate(), 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 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 161 of file class.ilPlugin.php.
References getPluginInfo().
Referenced by getStyleSheetLocation().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPlugin::getRelativeDirectory | ( | ) |
Definition at line 124 of file class.ilPlugin.php.
References getPluginInfo().
Here is the call 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 386 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 377 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 171 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 138 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 355 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 143 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:| ilPlugin::txt | ( | string | $a_var | ) |
Get Language Variable (prefix will be prepended automatically)
Definition at line 363 of file class.ilPlugin.php.
References getLanguageHandler().
Referenced by ilTestExportPlugin\createExportFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPlugin::uninstall | ( | ) |
Definition at line 176 of file class.ilPlugin.php.
References afterUninstall(), beforeUninstall(), getId(), and getLanguageHandler().
Here is the call graph for this function:| ilPlugin::update | ( | ) |
Definition at line 275 of file class.ilPlugin.php.
References $DIC, $ilDB, afterUpdate(), beforeUpdate(), getId(), getLanguageHandler(), getPluginInfo(), 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 302 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 __construct(), ilTestExportPlugin\__construct(), ilRepositoryObjectPlugin\_getIcon(), ilRepositoryObjectPlugin\_getImagePath(), ilOrgUnitExtensionPlugin\_getName(), and ilRepositoryObjectPlugin\_getName().
|
protected |
Definition at line 33 of file class.ilPlugin.php.
Referenced by __construct(), ilTestExportPlugin\__construct(), and ilRepositoryObjectPlugin\beforeActivation().
|
protected |
Definition at line 35 of file class.ilPlugin.php.
Referenced by __construct(), and ilTestExportPlugin\__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().