ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Abstract Class ilPlugin. More...
Public Member Functions | |
__construct () | |
getComponentType () | |
Get Component Type. More... | |
getComponentName () | |
Get Component Name. More... | |
getSlot () | |
Get Slot Name. More... | |
getSlotId () | |
Get Slot ID. More... | |
getPluginName () | |
Get Plugin Name. More... | |
getId () | |
getLastUpdateVersion () | |
Get Version of last update. More... | |
getVersion () | |
getIliasMinVersion () | |
getIliasMaxVersion () | |
Get Required ILIAS max. More... | |
getActive () | |
setDBVersion (int $a_dbversion) | |
getDBVersion () | |
writeDBVersion (int $a_dbversion) | |
getDirectory () | |
Get Plugin Directory. More... | |
includeClass ($a_class_file_name) | |
Include (once) a class file. More... | |
getPrefix () | |
Get plugin prefix, used for lang vars. More... | |
getTablePrefix () | |
Get db table plugin prefix. More... | |
updateLanguages ($a_lang_keys=null) | |
updateDatabase () | |
Update database. More... | |
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) | |
gets a ilTemplate instance of a html-file in the plugin /templates More... | |
getImagePath (string $a_img) | |
Get image path. More... | |
getStyleSheetLocation (string $a_css_file) | |
addBlockFile ($a_tpl, $a_var, $a_block, $a_tplname) | |
Add template content to placeholder variable. More... | |
isActive () | |
Check whether plugin is active. More... | |
needsUpdate () | |
Check whether update is needed. More... | |
install () | |
activate () | |
Activate. More... | |
deactivate () | |
Deactivate. More... | |
uninstall () | |
update () | |
Update plugin. More... | |
promoteGlobalScreenProvider () | |
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... | |
getMessage () | |
Static Public Member Functions | |
static | _getDirectory (string $a_ctype, string $a_cname, string $a_slot_id, string $a_pname) |
Get plugin directory. More... | |
static | getAvailableLangFiles (string $a_lang_directory) |
Get array of all language files in the plugin. More... | |
static | hasConfigureClass (string $a_slot_dir, array $plugin_data, array $plugin_db_data) |
Has the plugin a configure class? More... | |
static | getConfigureClassName (array $plugin_data) |
Get plugin configure class name. More... | |
static | getDBUpdateScriptName (string $a_ctype, string $a_cname, string $a_slot_name, string $a_pname) |
static | lookupTxt (string $a_mod_prefix, string $a_pl_id, string $a_lang_var) |
static | langExitsById (string $pluginId, string $langVar) |
Is searched lang var available in plugin lang files. More... | |
static | _getImagePath (string $a_ctype, string $a_cname, string $a_slot_id, string $a_pname, string $a_img) |
static | createPluginRecord (string $a_ctype, string $a_cname, string $a_slot_id, string $a_pname) |
static | getPluginRecord (string $a_ctype, string $a_cname, string $a_slot_id, string $a_pname) |
static | getPluginObject (string $a_ctype, string $a_cname, string $a_slot_id, string $a_pname) |
static | lookupStoredData (string $a_ctype, string $a_cname, string $a_slot_id, string $a_pname) |
Lookup information data in il_plugin. More... | |
static | getActivePluginsForSlot (string $a_ctype, string $a_cname, string $a_slot_id) |
static | getActivePluginIdsForSlot (string $a_ctype, string $a_cname, string $a_slot_id) |
Get All active plugin ids for a slot. More... | |
static | lookupNameForId (string $a_ctype, string $a_cname, string $a_slot_id, string $a_plugin_id) |
static | lookupIdForName (string $a_ctype, string $a_cname, string $a_slot_id, string $a_plugin_name) |
static | lookupTypeInformationsForId (string $id) |
Protected Member Functions | |
setSlotObject (ilPluginSlot $a_slot) | |
getSlotObject () | |
getClassesDirectory () | |
getLanguageDirectory () | |
slotInit () | |
Object initialization done by slot. More... | |
init () | |
Object initialization. More... | |
afterInstall () | |
After install processing. More... | |
beforeActivation () | |
Before activation processing. More... | |
afterActivation () | |
After activation processing. More... | |
afterDeactivation () | |
After deactivation processing. More... | |
beforeUninstall () | |
afterUninstall () | |
This is Plugin-Specific and is triggered after the uninstall command of a plugin. More... | |
readEventListening () | |
Read the event listening definitions from the plugin.xml (if file exists) More... | |
clearEventListening () | |
Clear the entries of this plugin in the event handling table. More... | |
beforeUpdate () | |
Before update processing. More... | |
afterUpdate () | |
After update processing. More... | |
Protected Attributes | |
$slot | |
$active = false | |
$iliasmaxversion = "" | |
$iliasminversion = "" | |
$version = "" | |
$lastupdateversion = "" | |
$dbversion = 0 | |
$lang_initialised = false | |
$id = '' | |
$provider_collection | |
$message | |
Private Member Functions | |
setId ($a_id) | |
Set Id. More... | |
setLastUpdateVersion (string $a_lastupdateversion) | |
Set Version of last update. More... | |
setVersion (string $a_version) | |
setIliasMinVersion (string $a_iliasminversion) | |
setIliasMaxVersion (string $a_iliasmaxversion) | |
setActive (bool $a_active) | |
__init () | |
Default initialization. More... | |
Abstract Class ilPlugin.
Definition at line 14 of file class.ilPlugin.php.
ilPlugin::__construct | ( | ) |
Reimplemented in ilRepositoryObjectPlugin.
Definition at line 63 of file class.ilPlugin.php.
References __init().
|
private |
Default initialization.
Definition at line 756 of file class.ilPlugin.php.
References $DIC, getComponentName(), getComponentType(), getPluginName(), getPluginRecord(), getSlotId(), init(), loadLanguageModule(), setActive(), setDBVersion(), setId(), setIliasMaxVersion(), setIliasMinVersion(), setLastUpdateVersion(), setSlotObject(), setVersion(), and slotInit().
Referenced by __construct().
|
static |
Get plugin directory.
Definition at line 307 of file class.ilPlugin.php.
References ilPluginSlot\_getPluginsDirectory().
Referenced by _getImagePath(), and ilObjectDefinition\parsePluginData().
|
static |
string | $a_ctype | |
string | $a_cname | |
string | $a_slot_id | |
string | $a_pname | |
string | $a_img |
Definition at line 634 of file class.ilPlugin.php.
References $img, _getDirectory(), ilUtil\getImagePath(), ilComponent\lookupId(), and lookupIdForName().
Referenced by ilOrgUnitExtensionPlugin\_getIcon(), ilRepositoryObjectPlugin\_getIcon(), and getImagePath().
ilPlugin::activate | ( | ) |
Activate.
Definition at line 904 of file class.ilPlugin.php.
References $DIC, $ilDB, $result, afterActivation(), beforeActivation(), ilCachedComponentData\flush(), getComponentName(), getComponentType(), getPluginName(), getSlotId(), needsUpdate(), and update().
ilPlugin::addBlockFile | ( | $a_tpl, | |
$a_var, | |||
$a_block, | |||
$a_tplname | |||
) |
Add template content to placeholder variable.
Definition at line 696 of file class.ilPlugin.php.
References getDirectory().
|
protected |
After activation processing.
Definition at line 967 of file class.ilPlugin.php.
Referenced by activate().
|
protected |
After deactivation processing.
Definition at line 1000 of file class.ilPlugin.php.
Referenced by deactivate().
|
protected |
After install processing.
Definition at line 947 of file class.ilPlugin.php.
Referenced by install().
|
protected |
This is Plugin-Specific and is triggered after the uninstall command of a plugin.
Definition at line 1061 of file class.ilPlugin.php.
Referenced by uninstall().
|
protected |
After update processing.
Definition at line 1173 of file class.ilPlugin.php.
Referenced by update().
|
protected |
Before activation processing.
Reimplemented in ilRepositoryObjectPlugin.
Definition at line 955 of file class.ilPlugin.php.
Referenced by activate().
|
protected |
Reimplemented in ilRepositoryObjectPlugin.
Definition at line 1005 of file class.ilPlugin.php.
Referenced by uninstall().
|
protected |
Before update processing.
Definition at line 1161 of file class.ilPlugin.php.
Referenced by update().
|
protected |
Clear the entries of this plugin in the event handling table.
Definition at line 1145 of file class.ilPlugin.php.
References getComponentName(), getComponentType(), getDirectory(), getPluginName(), and getSlotId().
Referenced by uninstall().
|
static |
$a_ctype | |
$a_cname | |
$a_slot_id | |
$a_pname |
@description Create plugin record
Definition at line 714 of file class.ilPlugin.php.
References $DIC, $ilDB, and ilCachedComponentData\flush().
Referenced by ilPluginSlot\readPluginInformation().
ilPlugin::deactivate | ( | ) |
Deactivate.
Definition at line 975 of file class.ilPlugin.php.
References $DIC, $ilDB, $result, afterDeactivation(), ilCachedComponentData\flush(), getComponentName(), getComponentType(), getPluginName(), and getSlotId().
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.
string | $dic_key | |
\ILIAS\DI\Container | $dic |
Definition at line 1439 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.
\ILIAS\DI\Container | $dic |
Definition at line 1414 of file class.ilPlugin.php.
References $dic.
ilPlugin::getActive | ( | ) |
Definition at line 231 of file class.ilPlugin.php.
References $active.
|
static |
Get All active plugin ids for a slot.
$a_ctype | |
$a_cname | |
$a_slot_id |
Definition at line 1278 of file class.ilPlugin.php.
References $DIC, and ilCachedComponentData\getInstance().
|
static |
string | $a_ctype | |
string | $a_cname | |
string | $a_slot_id |
Definition at line 1249 of file class.ilPlugin.php.
References $DIC, and ilCachedComponentData\getInstance().
Referenced by ilPluginAdmin\getActivePluginsForSlot().
|
static |
Get array of all language files in the plugin.
Definition at line 343 of file class.ilPlugin.php.
Referenced by ilPluginsOverviewTableGUI\gatherPluginData(), ilObjComponentSettingsGUI\showPlugin(), and updateLanguages().
|
protected |
Definition at line 316 of file class.ilPlugin.php.
References getDirectory().
Referenced by includeClass().
|
abstract |
Get Component Name.
Must be overwritten in plugin class of plugin slot.
Reimplemented in ilCloudHookPlugin, ilDclFieldTypePlugin, ilOrgUnitExtensionPlugin, ilOrgUnitTypeHookPlugin, ilStudyProgrammeTypeHookPlugin, ilSurveyQuestionsPlugin, ilTestExportPlugin, ilTestSignaturePlugin, ilQuestionsPlugin, ilAdvancedMDClaimingPlugin, ilAuthPlugin, ilShibbolethAuthenticationPlugin, ilAppointmentCustomGridPlugin, ilAppointmentCustomModalPlugin, ilPageComponentPlugin, ilCronHookPlugin, ilEventHookPlugin, ilLDAPPlugin, ilPDFRendererPlugin, ilPreviewRendererPlugin, ilRepositoryObjectPlugin, ilUserInterfaceHookPlugin, ilUDFClaimingPlugin, ilUDFDefinitionPlugin, and ilSoapHookPlugin.
Referenced by __init(), activate(), clearEventListening(), deactivate(), getImagePath(), getStyleSheetLocation(), install(), isActive(), needsUpdate(), readEventListening(), uninstall(), update(), updateDatabase(), and writeDBVersion().
|
abstract |
Get Component Type.
Must be overwritten in plugin class of plugin slot.
Reimplemented in ilCloudHookPlugin, ilDclFieldTypePlugin, ilOrgUnitExtensionPlugin, ilOrgUnitTypeHookPlugin, ilStudyProgrammeTypeHookPlugin, ilSurveyQuestionsPlugin, ilTestExportPlugin, ilTestSignaturePlugin, ilQuestionsPlugin, ilAdvancedMDClaimingPlugin, ilAuthPlugin, ilShibbolethAuthenticationPlugin, ilAppointmentCustomGridPlugin, ilAppointmentCustomModalPlugin, ilPageComponentPlugin, ilCronHookPlugin, ilEventHookPlugin, ilLDAPPlugin, ilPDFRendererPlugin, ilPreviewRendererPlugin, ilRepositoryObjectPlugin, ilUserInterfaceHookPlugin, ilUDFClaimingPlugin, ilUDFDefinitionPlugin, and ilSoapHookPlugin.
Referenced by __init(), activate(), clearEventListening(), deactivate(), getImagePath(), getStyleSheetLocation(), install(), isActive(), needsUpdate(), readEventListening(), uninstall(), update(), updateDatabase(), and writeDBVersion().
|
static |
Get plugin configure class name.
array | $plugin_data |
Definition at line 407 of file class.ilPlugin.php.
Referenced by ilPluginsOverviewTableGUI\gatherPluginData(), ilObjComponentSettingsGUI\showPlugin(), and update().
|
static |
string | $a_ctype | |
string | $a_cname | |
string | $a_slot_name | |
string | $a_pname |
Definition at line 430 of file class.ilPlugin.php.
Referenced by ilPluginDBUpdate\__construct(), and ilObjComponentSettingsGUI\showPlugin().
ilPlugin::getDBVersion | ( | ) |
Definition at line 267 of file class.ilPlugin.php.
References $dbversion.
Referenced by writeDBVersion().
ilPlugin::getDirectory | ( | ) |
Get Plugin Directory.
Definition at line 298 of file class.ilPlugin.php.
References getPluginName(), and getSlotObject().
Referenced by addBlockFile(), clearEventListening(), getClassesDirectory(), getLanguageDirectory(), getStyleSheetLocation(), getTemplate(), readEventListening(), and update().
|
final |
Definition at line 1389 of file class.ilPlugin.php.
References $provider_collection, promoteGlobalScreenProvider(), and ILIAS\GlobalScreen\Provider\PluginProviderCollection\setMainBarProvider().
ilPlugin::getId | ( | ) |
Definition at line 135 of file class.ilPlugin.php.
References $id.
Referenced by ilRepositoryObjectPlugin\beforeActivation(), ilRepositoryObjectPlugin\beforeUninstall(), ilCloudHookPlugin\getPluginTablePrefix(), ilDclFieldTypePlugin\getPluginTablePrefix(), getPrefix(), ilTestSignaturePlugin\handInFileForArchiving(), and install().
ilPlugin::getIliasMaxVersion | ( | ) |
Get Required ILIAS max.
release.
Definition at line 213 of file class.ilPlugin.php.
References $iliasmaxversion.
ilPlugin::getIliasMinVersion | ( | ) |
Definition at line 193 of file class.ilPlugin.php.
References $iliasminversion.
ilPlugin::getImagePath | ( | string | $a_img | ) |
Get image path.
Definition at line 662 of file class.ilPlugin.php.
References _getImagePath(), getComponentName(), getComponentType(), getPluginName(), and getSlotId().
|
protected |
Definition at line 334 of file class.ilPlugin.php.
References getDirectory().
Referenced by updateLanguages().
ilPlugin::getLastUpdateVersion | ( | ) |
Get Version of last update.
Definition at line 157 of file class.ilPlugin.php.
References $lastupdateversion.
ilPlugin::getMessage | ( | ) |
Definition at line 1449 of file class.ilPlugin.php.
|
abstract |
Get Plugin Name.
Must be same as in class name il<Name>Plugin and must correspond to plugins subdirectory name.
Must be overwritten in plugin class of plugin
Reimplemented in ExamplePlugin, and ExamplePlugin.
Referenced by __init(), activate(), clearEventListening(), deactivate(), getDirectory(), getImagePath(), ilCloudHookPlugin\getPluginTablePrefix(), ilDclFieldTypePlugin\getPluginTablePrefix(), ilPreviewRendererPlugin\getRendererClassInstance(), getStyleSheetLocation(), ilPageComponentPlugin\getUIClassInstance(), install(), isActive(), needsUpdate(), readEventListening(), uninstall(), update(), updateDatabase(), and writeDBVersion().
|
static |
string | $a_ctype | |
string | $a_cname | |
string | $a_slot_id | |
string | $a_pname |
ilPluginException |
Definition at line 1185 of file class.ilPlugin.php.
References XapiProxy\$plugin, ilCachedComponentData\getInstance(), and ilPluginSlot\lookupSlotName().
Referenced by SurveyQuestion\_getQuestionTypeName(), assQuestion\_getQuestionTypeName(), ilObjQuestionPool\_getQuestionTypes(), ilObjSurveyQuestionPool\_getQuestiontypes(), ilObjSurveyQuestionPool\_getQuestionTypeTranslations(), SurveyQuestion\_includeClass(), ilComponentActivatePluginsObjective\achieve(), ilComponentInstallPluginObjective\achieve(), ilComponentPluginLanguageUpdatedObjective\achieve(), ilComponentUpdatePluginObjective\achieve(), ilObjComponentSettingsGUI\activatePlugin(), ilObjComponentSettingsGUI\confirmUninstallPlugin(), ilObjComponentSettingsGUI\deactivatePlugin(), ilObjTest\getAvailableQuestions(), ilDclFieldFactory\getClassPathByInstance(), ilDclFieldFactory\getFieldTypeByInstance(), ilOrgUnitExtension\getPlugin(), ilOrgUnitExtensionGUI\getPlugin(), ilOrgUnitExtensionListGUI\getPlugin(), ilObjectPlugin\getPlugin(), ilObjectPluginGUI\getPlugin(), ilObjectPluginListGUI\getPlugin(), ilPluginAdmin\getPluginObject(), ilObjQuestionPool\getQuestionTypeTranslations(), assQuestion\includePluginClass(), ilObjComponentSettingsGUI\installPlugin(), ilObjQuestionPool\isPluginActive(), ilObjectPlugin\loadOrgUnitPlugin(), ilObjectPlugin\loadRepoPlugin(), ilObjComponentSettingsGUI\refreshLanguages(), ilObjLanguage\refreshPlugins(), ilObjComponentSettingsGUI\uninstallPlugin(), ilObjComponentSettingsGUI\updatePlugin(), and ilObjQuestionPoolGUI\uploadQplObject().
|
static |
string | $a_ctype | |
string | $a_cname | |
string | $a_slot_id | |
string | $a_pname |
ilPluginException |
Definition at line 740 of file class.ilPlugin.php.
References ilCachedComponentData\getInstance().
Referenced by __init(), ilPluginsOverviewTableGUI\gatherPluginData(), ilPluginAdmin\getPluginData(), ilCloudHookPlugin\getPluginTablePrefix(), ilDclFieldTypePlugin\getPluginTablePrefix(), and ilObjComponentSettingsGUI\showPlugin().
ilPlugin::getPrefix | ( | ) |
Get plugin prefix, used for lang vars.
Definition at line 416 of file class.ilPlugin.php.
References getId(), and getSlotObject().
Referenced by getTablePrefix(), loadLanguageModule(), txt(), uninstall(), update(), and updateLanguages().
|
abstract |
Get Slot Name.
Must be overwritten in plugin class of plugin slot.
Reimplemented in ilCloudHookPlugin, ilDclFieldTypePlugin, ilOrgUnitExtensionPlugin, ilOrgUnitTypeHookPlugin, ilStudyProgrammeTypeHookPlugin, ilSurveyQuestionsPlugin, ilTestExportPlugin, ilTestSignaturePlugin, ilQuestionsPlugin, ilAdvancedMDClaimingPlugin, ilAuthPlugin, ilShibbolethAuthenticationPlugin, ilAppointmentCustomGridPlugin, ilAppointmentCustomModalPlugin, ilPageComponentPlugin, ilCronHookPlugin, ilEventHookPlugin, ilLDAPPlugin, ilPDFRendererPlugin, ilPreviewRendererPlugin, ilRepositoryObjectPlugin, ilUserInterfaceHookPlugin, ilUDFClaimingPlugin, ilUDFDefinitionPlugin, and ilSoapHookPlugin.
|
abstract |
Get Slot ID.
Must be overwritten in plugin class of plugin slot.
Reimplemented in ilCloudHookPlugin, ilDclFieldTypePlugin, ilOrgUnitExtensionPlugin, ilOrgUnitTypeHookPlugin, ilStudyProgrammeTypeHookPlugin, ilSurveyQuestionsPlugin, ilTestExportPlugin, ilTestSignaturePlugin, ilQuestionsPlugin, ilAdvancedMDClaimingPlugin, ilAuthPlugin, ilShibbolethAuthenticationPlugin, ilAppointmentCustomGridPlugin, ilAppointmentCustomModalPlugin, ilPageComponentPlugin, ilCronHookPlugin, ilEventHookPlugin, ilLDAPPlugin, ilPDFRendererPlugin, ilPreviewRendererPlugin, ilRepositoryObjectPlugin, ilUserInterfaceHookPlugin, ilUDFClaimingPlugin, ilUDFDefinitionPlugin, and ilSoapHookPlugin.
Referenced by __init(), activate(), clearEventListening(), deactivate(), getImagePath(), getStyleSheetLocation(), install(), isActive(), needsUpdate(), readEventListening(), uninstall(), update(), updateDatabase(), and writeDBVersion().
|
protected |
Definition at line 249 of file class.ilPlugin.php.
References $slot.
Referenced by getDirectory(), ilCloudHookPlugin\getPluginTablePrefix(), ilDclFieldTypePlugin\getPluginTablePrefix(), and getPrefix().
ilPlugin::getStyleSheetLocation | ( | string | $a_css_file | ) |
string | $a_css_file |
Definition at line 679 of file class.ilPlugin.php.
References getComponentName(), getComponentType(), getDirectory(), getPluginName(), getSlotId(), ilUtil\getStyleSheetLocation(), ilComponent\lookupId(), and lookupIdForName().
ilPlugin::getTablePrefix | ( | ) |
Get db table plugin prefix.
Definition at line 440 of file class.ilPlugin.php.
References getPrefix().
Referenced by updateDatabase().
gets a ilTemplate instance of a html-file in the plugin /templates
string | $a_template | |
bool | $a_par1 | |
bool | $a_par2 |
Definition at line 619 of file class.ilPlugin.php.
References getDirectory().
ilPlugin::getVersion | ( | ) |
Definition at line 175 of file class.ilPlugin.php.
References $version.
Referenced by update().
|
static |
Has the plugin a configure class?
string | $a_slot_dir | slot directory |
array | $plugin_data | plugin data |
array | $plugin_db_data | plugin db data |
Definition at line 384 of file class.ilPlugin.php.
References ILIAS_VERSION_NUMERIC, and ilComponent\isVersionGreaterString().
Referenced by ilPluginsOverviewTableGUI\gatherPluginData(), and ilObjComponentSettingsGUI\showPlugin().
ilPlugin::includeClass | ( | $a_class_file_name | ) |
Include (once) a class file.
Definition at line 325 of file class.ilPlugin.php.
References getClassesDirectory().
Referenced by ilPreviewRendererPlugin\getRendererClassInstance(), and ilPageComponentPlugin\getUIClassInstance().
|
protected |
Object initialization.
Can be overwritten by plugin class (and should be made protected)
Definition at line 845 of file class.ilPlugin.php.
Referenced by __init().
ilPlugin::install | ( | ) |
Definition at line 884 of file class.ilPlugin.php.
References $DIC, $ilDB, afterInstall(), ilCachedComponentData\flush(), getComponentName(), getComponentType(), getId(), getPluginName(), and getSlotId().
ilPlugin::isActive | ( | ) |
Check whether plugin is active.
Definition at line 853 of file class.ilPlugin.php.
References $DIC, getComponentName(), getComponentType(), getPluginName(), and getSlotId().
|
static |
Is searched lang var available in plugin lang files.
string | $pluginId | |
string | $langVar |
Definition at line 598 of file class.ilPlugin.php.
References $DIC, $lng, and ilObjectPlugin\getPluginObjectByType().
Referenced by ilObjectRolePermissionTableGUI\fillRow().
ilPlugin::loadLanguageModule | ( | ) |
Load language module for plugin.
Definition at line 546 of file class.ilPlugin.php.
References $DIC, $lng, and getPrefix().
Referenced by __init(), and txt().
|
static |
$a_ctype | |
$a_cname | |
$a_slot_id | |
$a_plugin_name |
Definition at line 1330 of file class.ilPlugin.php.
Referenced by _getImagePath(), ilObjRepositorySettings\getAllObjTypes(), ilObjectDefinition\getGroupedPluginObjectTypes(), ilModulesTableGUI\getPluginComponents(), getStyleSheetLocation(), and ilObjectDefinition\parsePluginData().
|
static |
$a_ctype | |
$a_cname | |
$a_slot_id | |
$a_plugin_id |
Definition at line 1304 of file class.ilPlugin.php.
Referenced by ilOrgUnitExtensionPlugin\_getIcon(), ilRepositoryObjectPlugin\_getIcon(), ilOrgUnitExtensionPlugin\_getName(), ilRepositoryObjectPlugin\_getName(), ilNavigationHistory\getItems(), ilOrgUnitExtension\getPlugin(), ilOrgUnitExtensionGUI\getPlugin(), ilOrgUnitExtensionListGUI\getPlugin(), ilObjectPlugin\getPlugin(), ilObjectPluginGUI\getPlugin(), ilObjectPluginListGUI\getPlugin(), ilObjectDefinition\isActivePluginType(), ilRepositoryObjectPluginSlot\isTypePlugin(), ilRepositoryObjectPluginSlot\isTypePluginWithLP(), ilObjectPlugin\loadOrgUnitPlugin(), and ilObjectPlugin\loadRepoPlugin().
|
static |
Lookup information data in il_plugin.
string | $a_ctype | |
string | $a_cname | |
string | $a_slot_id | |
string | $a_pname |
Definition at line 1221 of file class.ilPlugin.php.
Referenced by ilPluginSlot\readPluginInformation().
|
static |
string | $a_mod_prefix | |
string | $a_pl_id | |
string | $a_lang_var |
Definition at line 578 of file class.ilPlugin.php.
|
static |
string | $id |
Definition at line 1353 of file class.ilPlugin.php.
References $DIC, $id, and $ilDB.
Referenced by ilObjectPlugin\getPluginObjectByType().
ilPlugin::needsUpdate | ( | ) |
Check whether update is needed.
Definition at line 870 of file class.ilPlugin.php.
References $DIC, getComponentName(), getComponentType(), getPluginName(), and getSlotId().
Referenced by activate().
ilPlugin::promoteGlobalScreenProvider | ( | ) |
Definition at line 1378 of file class.ilPlugin.php.
References $DIC.
Referenced by getGlobalScreenProviderCollection().
|
protected |
Read the event listening definitions from the plugin.xml (if file exists)
Definition at line 1128 of file class.ilPlugin.php.
References getComponentName(), getComponentType(), getDirectory(), getPluginName(), and getSlotId().
Referenced by update().
|
private |
bool | $a_active |
Definition at line 222 of file class.ilPlugin.php.
Referenced by __init().
ilPlugin::setDBVersion | ( | int | $a_dbversion | ) |
int | $a_dbversion |
Definition at line 258 of file class.ilPlugin.php.
Referenced by __init(), and writeDBVersion().
|
private |
Set Id.
string | $a_id | Id |
Definition at line 126 of file class.ilPlugin.php.
Referenced by __init().
|
private |
$a_iliasmaxversion |
Definition at line 202 of file class.ilPlugin.php.
Referenced by __init().
|
private |
$a_iliasminversion |
Definition at line 184 of file class.ilPlugin.php.
Referenced by __init().
|
private |
Set Version of last update.
string | $a_lastupdateversion | Version of last update |
Definition at line 146 of file class.ilPlugin.php.
Referenced by __init().
|
protected |
ilPluginSlot | $a_slot |
Definition at line 240 of file class.ilPlugin.php.
Referenced by __init().
|
private |
string | $a_version |
Definition at line 166 of file class.ilPlugin.php.
Referenced by __init().
|
abstractprotected |
Object initialization done by slot.
Must be overwritten in plugin class of plugin slot.
(and should be made protected)
Reimplemented in ilCloudHookPlugin, ilDclFieldTypePlugin, ilOrgUnitExtensionPlugin, ilOrgUnitTypeHookPlugin, ilStudyProgrammeTypeHookPlugin, ilSurveyQuestionsPlugin, ilTestExportPlugin, ilTestSignaturePlugin, ilQuestionsPlugin, ilAdvancedMDClaimingPlugin, ilAuthPlugin, ilShibbolethAuthenticationPlugin, ilAppointmentCustomGridPlugin, ilAppointmentCustomModalPlugin, ilPageComponentPlugin, ilCronHookPlugin, ilEventHookPlugin, ilLDAPPlugin, ilPDFRendererPlugin, ilPreviewRendererPlugin, ilRepositoryObjectPlugin, ilUserInterfaceHookPlugin, ilUDFClaimingPlugin, ilUDFDefinitionPlugin, and ilSoapHookPlugin.
Referenced by __init().
ilPlugin::txt | ( | string | $a_var | ) |
Get Language Variable (prefix will be prepended automatically)
Definition at line 561 of file class.ilPlugin.php.
References $DIC, $lng, getPrefix(), and loadLanguageModule().
|
final |
Definition at line 1013 of file class.ilPlugin.php.
References $DIC, $ilDB, afterUninstall(), beforeUninstall(), clearEventListening(), ilCachedComponentData\flush(), getComponentName(), getComponentType(), getPluginName(), getPrefix(), getSlotId(), and ilDBConstants\T_TEXT.
ilPlugin::update | ( | ) |
Update plugin.
Definition at line 1069 of file class.ilPlugin.php.
References $DIC, $ilDB, $result, afterUpdate(), beforeUpdate(), getComponentName(), getComponentType(), getConfigureClassName(), getDirectory(), getPluginName(), getPrefix(), getSlotId(), getVersion(), readEventListening(), updateDatabase(), and updateLanguages().
Referenced by activate().
ilPlugin::updateDatabase | ( | ) |
Update database.
Definition at line 508 of file class.ilPlugin.php.
References $DIC, $ilDB, $lng, $message, $result, getComponentName(), getComponentType(), getPluginName(), getSlotId(), and getTablePrefix().
Referenced by update().
ilPlugin::updateLanguages | ( | $a_lang_keys = null | ) |
Definition at line 451 of file class.ilPlugin.php.
References Vendor\Package\$a, $lang, $txt, ilObjLanguage\_getLocalChangesByModule(), getAvailableLangFiles(), ilObjLanguage\getInstalledLanguages(), getLanguageDirectory(), getPrefix(), and ilObjLanguage\replaceLangEntry().
Referenced by update().
ilPlugin::writeDBVersion | ( | int | $a_dbversion | ) |
string | $a_dbversion |
Definition at line 276 of file class.ilPlugin.php.
References $DIC, $ilDB, getComponentName(), getComponentType(), getDBVersion(), getPluginName(), getSlotId(), and setDBVersion().
|
protected |
Definition at line 24 of file class.ilPlugin.php.
Referenced by getActive().
|
protected |
Definition at line 44 of file class.ilPlugin.php.
Referenced by getDBVersion().
|
protected |
Definition at line 52 of file class.ilPlugin.php.
Referenced by getId(), ilCloudHookPlugin\getPluginTablePrefix(), ilDclFieldTypePlugin\getPluginTablePrefix(), and lookupTypeInformationsForId().
|
protected |
Definition at line 28 of file class.ilPlugin.php.
Referenced by getIliasMaxVersion().
|
protected |
Definition at line 32 of file class.ilPlugin.php.
Referenced by getIliasMinVersion().
|
protected |
Definition at line 48 of file class.ilPlugin.php.
|
protected |
Definition at line 40 of file class.ilPlugin.php.
Referenced by getLastUpdateVersion().
|
protected |
Definition at line 60 of file class.ilPlugin.php.
Referenced by updateDatabase().
|
protected |
Definition at line 56 of file class.ilPlugin.php.
Referenced by getGlobalScreenProviderCollection().
|
protected |
Definition at line 20 of file class.ilPlugin.php.
Referenced by getSlotObject().
|
protected |
Definition at line 36 of file class.ilPlugin.php.
Referenced by getVersion().