ILIAS
release_4-4 Revision
|
Public Member Functions | |
__construct () | |
Constructor. More... | |
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 () | |
Get Id. More... | |
getLastUpdateVersion () | |
Get Version of last update. More... | |
getVersion () | |
Get Current Version (from plugin.php file). More... | |
getIliasMinVersion () | |
Get Required ILIAS min. More... | |
getIliasMaxVersion () | |
Get Required ILIAS max. More... | |
getActive () | |
Get Active. More... | |
setDBVersion ($a_dbversion) | |
Set DB Version. More... | |
getDBVersion () | |
Get DB Version. More... | |
writeDBVersion ($a_dbversion) | |
Write DB version to database. More... | |
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 () | |
Update all languages. More... | |
updateDatabase () | |
Update database. More... | |
loadLanguageModule () | |
Load language module for plugin. More... | |
txt ($a_var) | |
Get Language Variable (prefix will be prepended automatically) More... | |
getTemplate ($a_template, $a_par1=true, $a_par2=true) | |
Get template from plugin. More... | |
getImagePath ($a_img) | |
Get image path. More... | |
getStyleSheetLocation ($a_css_file) | |
Get css file location. More... | |
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... | |
activate () | |
Activate. More... | |
deactivate () | |
Deactivate. More... | |
update () | |
Update plugin. More... | |
lookupNameForId ($a_ctype, $a_cname, $a_slot_id, $a_plugin_id) | |
Lookup name for id. More... | |
lookupIdForName ($a_ctype, $a_cname, $a_slot_id, $a_plugin_name) | |
Lookup id for name. More... | |
Static Public Member Functions | |
static | _getDirectory ($a_ctype, $a_cname, $a_slot_id, $a_pname) |
Get plugin directory. More... | |
static | getAvailableLangFiles ($a_lang_directory) |
Get array of all language files in the plugin. More... | |
static | hasConfigureClass ($a_slot_dir, $a_name) |
Has the plugin a configure class? More... | |
static | getConfigureClassName ($a_name) |
Get plugin configure class name. More... | |
static | getDBUpdateScriptName ($a_ctype, $a_cname, $a_slot_name, $a_pname) |
Get DB update script filename (full path) More... | |
static | lookupTxt ($a_mod_prefix, $a_pl_id, $a_lang_var) |
Lookup language text. More... | |
static | _getImagePath ($a_ctype, $a_cname, $a_slot_id, $a_pname, $a_img) |
Get image path. More... | |
static | createPluginRecord ($a_ctype, $a_cname, $a_slot_id, $a_pname) |
Create plugin record, if not existing. More... | |
static | getPluginRecord ($a_ctype, $a_cname, $a_slot_id, $a_pname) |
Get record from il_plugin table. More... | |
static | getPluginObject ($a_ctype, $a_cname, $a_slot_id, $a_pname) |
Get plugin object. More... | |
static | lookupStoredData ($a_ctype, $a_cname, $a_slot_id, $a_pname) |
Lookup information data in il_plugin. More... | |
static | getActivePluginsForSlot ($a_ctype, $a_cname, $a_slot_id) |
Get all active plugins for a slot. More... | |
Protected Member Functions | |
setSlotObject ($a_slot) | |
Set Plugin Slot. More... | |
getSlotObject () | |
Get Plugin Slot. More... | |
getClassesDirectory () | |
Get Plugin's classes Directory. More... | |
getLanguageDirectory () | |
Get Plugin's language Directory. More... | |
slotInit () | |
Object initialization done by slot. More... | |
init () | |
Object initialization. More... | |
beforeActivation () | |
Before activation processing. More... | |
afterActivation () | |
After activation processing. More... | |
Protected Attributes | |
$lang_initialised = false | |
Private Member Functions | |
setId ($a_id) | |
Set Id. More... | |
setLastUpdateVersion ($a_lastupdateversion) | |
Set Version of last update. More... | |
setVersion ($a_version) | |
Set Current Version (from plugin.php file). More... | |
setIliasMinVersion ($a_iliasminversion) | |
Set Required ILIAS min. More... | |
setIliasMaxVersion ($a_iliasmaxversion) | |
Set Required ILIAS max. More... | |
setActive ($a_active) | |
Set Active. More... | |
__init () | |
Default initialization. More... | |
Definition at line 16 of file class.ilPlugin.php.
|
final |
Constructor.
Definition at line 23 of file class.ilPlugin.php.
References __init(), getComponentName(), getComponentType(), getPluginName(), getSlot(), and getSlotId().
|
finalprivate |
Default initialization.
Definition at line 627 of file class.ilPlugin.php.
References $lng, getComponentName(), getComponentType(), getPluginName(), getPluginRecord(), getSlotId(), init(), loadLanguageModule(), setActive(), setDBVersion(), setId(), setIliasMaxVersion(), setIliasMinVersion(), setLastUpdateVersion(), setSlotObject(), setVersion(), and slotInit().
Referenced by __construct().
|
staticfinal |
Get plugin directory.
Definition at line 273 of file class.ilPlugin.php.
References ilPluginSlot\_getPluginsDirectory().
Referenced by _getImagePath(), and ilObjectDefinition\readDefinitionData().
|
staticfinal |
Get image path.
Definition at line 524 of file class.ilPlugin.php.
References $d, and _getDirectory().
Referenced by ilRepositoryObjectPlugin\_getIcon().
|
final |
Activate.
Definition at line 717 of file class.ilPlugin.php.
References $lng, $result, afterActivation(), beforeActivation(), getComponentName(), getComponentType(), getId(), getPluginName(), getSlotId(), needsUpdate(), and update().
|
final |
Add template content to placeholder variable.
Definition at line 550 of file class.ilPlugin.php.
References getDirectory().
|
protected |
After activation processing.
Definition at line 768 of file class.ilPlugin.php.
Referenced by activate().
|
protected |
Before activation processing.
Definition at line 757 of file class.ilPlugin.php.
Referenced by activate().
|
staticfinal |
Create plugin record, if not existing.
Definition at line 559 of file class.ilPlugin.php.
Referenced by ilPluginSlot\getPluginsInformation().
|
final |
Deactivate.
Definition at line 775 of file class.ilPlugin.php.
References $result, getComponentName(), getComponentType(), getPluginName(), and getSlotId().
|
final |
|
staticfinal |
Get all active plugins for a slot.
Definition at line 899 of file class.ilPlugin.php.
Referenced by ilPluginAdmin\getActivePluginsForSlot().
|
staticfinal |
Get array of all language files in the plugin.
Definition at line 311 of file class.ilPlugin.php.
References $file.
Referenced by ilPluginsOverviewTableGUI\gatherPluginData(), ilObjComponentSettingsGUI\showPlugin(), and updateLanguages().
|
finalprotected |
Get Plugin's classes Directory.
Definition at line 285 of file class.ilPlugin.php.
References getDirectory().
Referenced by includeClass().
|
abstract |
Get Component Name.
Must be overwritten in plugin class of plugin slot. (and should be made final)
Referenced by __construct(), __init(), activate(), deactivate(), isActive(), needsUpdate(), update(), updateDatabase(), and writeDBVersion().
|
abstract |
Get Component Type.
Must be overwritten in plugin class of plugin slot. (and should be made final)
Referenced by __construct(), __init(), activate(), deactivate(), isActive(), needsUpdate(), update(), updateDatabase(), and writeDBVersion().
|
staticfinal |
Get plugin configure class name.
Definition at line 365 of file class.ilPlugin.php.
Referenced by ilPluginsOverviewTableGUI\fillRow(), ilPluginsOverviewTableGUI\gatherPluginData(), ilObjComponentSettingsGUI\showPlugin(), and update().
|
staticfinal |
Get DB update script filename (full path)
Definition at line 383 of file class.ilPlugin.php.
Referenced by ilPluginDBUpdate\ilPluginDBUpdate(), and ilObjComponentSettingsGUI\showPlugin().
|
final |
Get DB Version.
Definition at line 234 of file class.ilPlugin.php.
Referenced by writeDBVersion().
|
final |
Get Plugin Directory.
Definition at line 265 of file class.ilPlugin.php.
References getPluginName(), and getSlotObject().
Referenced by addBlockFile(), getClassesDirectory(), getImagePath(), getLanguageDirectory(), getStyleSheetLocation(), getTemplate(), and update().
|
final |
Get Id.
Definition at line 94 of file class.ilPlugin.php.
Referenced by activate(), ilRepositoryObjectPlugin\beforeActivation(), ilCloudHookPlugin\getPluginTablePrefix(), getPrefix(), and ilTestSignaturePlugin\handInFileForArchiving().
|
final |
Get Required ILIAS max.
release.
Definition at line 174 of file class.ilPlugin.php.
|
final |
Get Required ILIAS min.
release.
Definition at line 154 of file class.ilPlugin.php.
|
final |
Get image path.
Definition at line 534 of file class.ilPlugin.php.
References getDirectory().
|
finalprotected |
Get Plugin's language Directory.
Definition at line 303 of file class.ilPlugin.php.
References getDirectory().
Referenced by updateLanguages().
|
final |
Get Version of last update.
Definition at line 114 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 (and should be made final)
Referenced by __construct(), __init(), activate(), ilRepositoryObjectPlugin\beforeActivation(), deactivate(), getDirectory(), ilCloudHookPlugin\getPluginTablePrefix(), ilPreviewRendererPlugin\getRendererClassInstance(), isActive(), needsUpdate(), update(), updateDatabase(), and writeDBVersion().
|
staticfinal |
Get plugin object.
string | $a_ctype | IL_COMP_MODULE | IL_COMP_SERVICE |
string | $a_cname | component name |
string | $a_sname | plugin slot name |
string | $a_pname | plugin name |
Definition at line 844 of file class.ilPlugin.php.
References $file, and ilPluginSlot\lookupSlotName().
Referenced by ilObjectPluginGUI\__construct(), ilObjectPlugin\__construct(), ilObjectCopySearchResultTableGUI\__construct(), SurveyQuestion\_getQuestionTypeName(), assQuestion\_getQuestionTypeName(), ilObjSurveyQuestionPool\_getQuestiontypes(), ilObjQuestionPool\_getQuestionTypes(), ilObjSurveyQuestionPool\_getQuestionTypeTranslations(), SurveyQuestion\_includeClass(), ilObjComponentSettingsGUI\activatePlugin(), ilObjComponentSettingsGUI\deactivatePlugin(), ilPluginAdmin\getPluginObject(), ilObjQuestionPool\getQuestionTypeTranslations(), ilObjTest\getQuestionTypeTranslations(), ilPluginAdmin\includeClass(), assQuestion\includePluginClass(), ilObjectPluginListGUI\init(), ilObjLanguage\refreshAll(), ilObjComponentSettingsGUI\refreshLanguages(), ilObjectCopyGUI\showTargetSelectionTree(), ilObjComponentSettingsGUI\updatePlugin(), and ilObjQuestionPoolGUI\uploadQplObject().
|
staticfinal |
Get record from il_plugin table.
Definition at line 585 of file class.ilPlugin.php.
Referenced by __init(), ilPluginAdmin\getPluginData(), and ilCloudHookPlugin\getPluginTablePrefix().
|
final |
Get plugin prefix, used for lang vars.
Definition at line 373 of file class.ilPlugin.php.
References getId(), and getSlotObject().
Referenced by getTablePrefix(), loadLanguageModule(), txt(), update(), and updateLanguages().
|
abstract |
Get Slot Name.
Must be overwritten in plugin class of plugin slot. (and should be made final)
Referenced by __construct().
|
abstract |
Get Slot ID.
Must be overwritten in plugin class of plugin slot. (and should be made final)
Referenced by __construct(), __init(), activate(), deactivate(), isActive(), needsUpdate(), update(), updateDatabase(), and writeDBVersion().
|
finalprotected |
Get Plugin Slot.
Definition at line 214 of file class.ilPlugin.php.
Referenced by getDirectory(), ilCloudHookPlugin\getPluginTablePrefix(), and getPrefix().
|
final |
Get css file location.
Definition at line 542 of file class.ilPlugin.php.
References getDirectory().
|
final |
Get db table plugin prefix.
Definition at line 392 of file class.ilPlugin.php.
References getPrefix().
Referenced by updateDatabase().
|
final |
Get template from plugin.
Definition at line 514 of file class.ilPlugin.php.
References $tpl, and getDirectory().
|
final |
Get Current Version (from plugin.php file).
Definition at line 134 of file class.ilPlugin.php.
Referenced by update().
|
staticfinal |
Has the plugin a configure class?
string | slot directory |
string | plugin name |
Definition at line 349 of file class.ilPlugin.php.
Referenced by ilPluginsOverviewTableGUI\gatherPluginData(), and ilObjComponentSettingsGUI\showPlugin().
|
final |
Include (once) a class file.
Definition at line 293 of file class.ilPlugin.php.
References getClassesDirectory().
Referenced by ilPreviewRendererPlugin\getRendererClassInstance(), ilUserInterfaceHookPlugin\getUIClassInstance(), and ilPageComponentPlugin\getUIClassInstance().
|
protected |
Object initialization.
Can be overwritten by plugin class (and should be made protected final)
Definition at line 688 of file class.ilPlugin.php.
Referenced by __init().
|
final |
Check whether plugin is active.
Definition at line 695 of file class.ilPlugin.php.
References getComponentName(), getComponentType(), getPluginName(), and getSlotId().
|
final |
Load language module for plugin.
Definition at line 473 of file class.ilPlugin.php.
References $lng, and getPrefix().
Referenced by __init(), and txt().
ilPlugin::lookupIdForName | ( | $a_ctype, | |
$a_cname, | |||
$a_slot_id, | |||
$a_plugin_name | |||
) |
Lookup id for name.
Definition at line 944 of file class.ilPlugin.php.
Referenced by ilObjRepositorySettings\getAllObjTypes(), ilModulesTableGUI\getComponents(), ilObjectDefinition\getGroupedRepositoryObjectTypes(), and ilObjectDefinition\readDefinitionData().
ilPlugin::lookupNameForId | ( | $a_ctype, | |
$a_cname, | |||
$a_slot_id, | |||
$a_plugin_id | |||
) |
Lookup name for id.
Definition at line 924 of file class.ilPlugin.php.
Referenced by ilObjectPluginGUI\__construct(), ilObjectPlugin\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilRepositoryObjectPlugin\_getIcon(), ilRepositoryObjectPlugin\_getName(), ilObjPluginDispatchGUI\forward(), ilNavigationHistory\getItems(), ilObjectPluginListGUI\init(), ilRepositoryObjectPluginSlot\isTypePlugin(), ilRepositoryObjectPluginSlot\isTypePluginWithLP(), and ilObjectCopyGUI\showTargetSelectionTree().
|
staticfinal |
Lookup information data in il_plugin.
Definition at line 879 of file class.ilPlugin.php.
Referenced by ilPluginSlot\getPluginsInformation().
|
static |
Lookup language text.
Definition at line 497 of file class.ilPlugin.php.
References $lng.
Referenced by ilObjRole\__getPermissionDefinitions(), ilPermission2GUI\__showPermissionsCreateSection(), ilPermission2GUI\__showPermissionsGeneralSection(), ilPermission2GUI\__showPermissionsObjectSection(), ilPermission2GUI\__showPermissionsRBACSection(), ilObject\_prepareCloneSelection(), ilContainerContentGUI\addHeaderRow(), ilPDSelectedItemsBlockGUI\addHeaderRow(), ilContainerContentGUI\addMessageRow(), ilObjSystemFolderGUI\checkObject(), ilRepUtilGUI\confirmRemoveFromSystemObject(), ilTrashTableGUI\fillRow(), ilSearchResultTableGUI\fillRow(), ilLPCollectionSettingsTableGUI\fillRow(), ilObjectOwnershipManagementTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilObjectRoleTemplatePermissionTableGUI\fillRow(), ilObjectRolePermissionTableGUI\fillRow(), ilModulesTableGUI\getComponents(), ilLPObjectStatisticsTypesTableGUI\getItems(), ilObjectStatusGUI\getPermissionInfo(), ilLPTableBaseGUI\getPossibleTypes(), ilObjectListGUI\insertIconsAndCheckboxes(), ilObjectOwnershipManagementGUI\listObjects(), ilObjectAddNewItemGUI\parseRepository(), ilObjRoleTemplateGUI\permObject(), ilObjRoleGUI\permObject(), and ilRepUtilGUI\showDeleteConfirmation().
|
final |
Check whether update is needed.
Definition at line 706 of file class.ilPlugin.php.
References getComponentName(), getComponentType(), getPluginName(), and getSlotId().
Referenced by activate().
|
finalprivate |
Set Active.
boolean | $a_active | Active |
Definition at line 184 of file class.ilPlugin.php.
Referenced by __init().
|
final |
Set DB Version.
int | $a_dbversion | DB Version |
Definition at line 224 of file class.ilPlugin.php.
Referenced by __init(), and writeDBVersion().
|
finalprivate |
Set Id.
string | $a_id | Id |
Definition at line 84 of file class.ilPlugin.php.
Referenced by __init().
|
finalprivate |
Set Required ILIAS max.
release.
string | $a_iliasmaxversion | Required ILIAS max. release |
Definition at line 164 of file class.ilPlugin.php.
Referenced by __init().
|
finalprivate |
Set Required ILIAS min.
release.
string | $a_iliasminversion | Required ILIAS min. release |
Definition at line 144 of file class.ilPlugin.php.
Referenced by __init().
|
finalprivate |
Set Version of last update.
string | $a_lastupdateversion | Version of last update |
Definition at line 104 of file class.ilPlugin.php.
Referenced by __init().
|
finalprotected |
Set Plugin Slot.
object | $a_slot | Plugin Slot |
Definition at line 204 of file class.ilPlugin.php.
Referenced by __init().
|
finalprivate |
Set Current Version (from plugin.php file).
string | $a_version | Current Version (from plugin.php file) |
Definition at line 124 of file class.ilPlugin.php.
Referenced by __init().
|
abstractprotected |
|
final |
Get Language Variable (prefix will be prepended automatically)
Definition at line 487 of file class.ilPlugin.php.
References $lng, getPrefix(), and loadLanguageModule().
Referenced by ilTestExportPlugin\getFormat().
|
final |
Update plugin.
Definition at line 795 of file class.ilPlugin.php.
References $ilCtrl, $result, getComponentName(), getComponentType(), getConfigureClassName(), getDirectory(), getPluginName(), getPrefix(), getSlotId(), getVersion(), updateDatabase(), and updateLanguages().
Referenced by activate().
ilPlugin::updateDatabase | ( | ) |
Update database.
Definition at line 439 of file class.ilPlugin.php.
References $lng, $result, $row, getComponentName(), getComponentType(), getPluginName(), getSlotId(), and getTablePrefix().
Referenced by update().
|
final |
Update all languages.
Definition at line 400 of file class.ilPlugin.php.
References $ilCtrl, $lang, $row, getAvailableLangFiles(), getLanguageDirectory(), getPrefix(), ilObjLanguage\replaceLangEntry(), and ilObjLanguage\replaceLangModule().
Referenced by update().
|
final |
Write DB version to database.
int | $a_dbversion | DB Version |
Definition at line 244 of file class.ilPlugin.php.
References getComponentName(), getComponentType(), getDBVersion(), getPluginName(), getSlotId(), and setDBVersion().
|
protected |
Definition at line 18 of file class.ilPlugin.php.