ILIAS
Release_4_2_x_branch Revision 61807
|
Public Member Functions | |
__construct () | |
Constructor. | |
getComponentType () | |
Get Component Type. | |
getComponentName () | |
Get Component Name. | |
getSlot () | |
Get Slot Name. | |
getSlotId () | |
Get Slot ID. | |
getPluginName () | |
Get Plugin Name. | |
getId () | |
Get Id. | |
getLastUpdateVersion () | |
Get Version of last update. | |
getVersion () | |
Get Current Version (from plugin.php file). | |
getIliasMinVersion () | |
Get Required ILIAS min. | |
getIliasMaxVersion () | |
Get Required ILIAS max. | |
getActive () | |
Get Active. | |
setDBVersion ($a_dbversion) | |
Set DB Version. | |
getDBVersion () | |
Get DB Version. | |
writeDBVersion ($a_dbversion) | |
Write DB version to database. | |
getDirectory () | |
Get Plugin Directory. | |
includeClass ($a_class_file_name) | |
Include (once) a class file. | |
getPrefix () | |
Get plugin prefix, used for lang vars. | |
getTablePrefix () | |
Get db table plugin prefix. | |
updateLanguages () | |
Update all languages. | |
updateDatabase () | |
Update database. | |
loadLanguageModule () | |
Load language module for plugin. | |
txt ($a_var) | |
Get Language Variable (prefix will be prepended automatically) | |
getTemplate ($a_template, $a_par1=true, $a_par2=true) | |
Get template from plugin. | |
getImagePath ($a_img) | |
Get image path. | |
getStyleSheetLocation ($a_css_file) | |
Get css file location. | |
addBlockFile ($a_tpl, $a_var, $a_block, $a_tplname) | |
Add template content to placeholder variable. | |
isActive () | |
Check whether plugin is active. | |
needsUpdate () | |
Check whether update is needed. | |
activate () | |
Activate. | |
deactivate () | |
Deactivate. | |
update () | |
Update plugin. | |
lookupNameForId ($a_ctype, $a_cname, $a_slot_id, $a_plugin_id) | |
Lookup name for id. | |
lookupIdForName ($a_ctype, $a_cname, $a_slot_id, $a_plugin_name) | |
Lookup id for name. |
Static Public Member Functions | |
static | _getDirectory ($a_ctype, $a_cname, $a_slot_id, $a_pname) |
Get plugin directory. | |
static | getAvailableLangFiles ($a_lang_directory) |
Get array of all language files in the plugin. | |
static | hasConfigureClass ($a_slot_dir, $a_name) |
Has the plugin a configure class? | |
static | getConfigureClassName ($a_name) |
Get plugin configure class name. | |
static | getDBUpdateScriptName ($a_ctype, $a_cname, $a_slot_name, $a_pname) |
Get DB update script filename (full path) | |
static | lookupTxt ($a_mod_prefix, $a_pl_id, $a_lang_var) |
Lookup language text. | |
static | _getImagePath ($a_ctype, $a_cname, $a_slot_id, $a_pname, $a_img) |
Get image path. | |
static | getPluginRecord ($a_ctype, $a_cname, $a_slot_id, $a_pname) |
Get record from il_plugin table. | |
static | getPluginObject ($a_ctype, $a_cname, $a_slot_id, $a_pname) |
Get plugin object. | |
static | lookupStoredData ($a_ctype, $a_cname, $a_slot_id, $a_pname) |
Lookup information data in il_plugin. | |
static | getActivePluginsForSlot ($a_ctype, $a_cname, $a_slot_id) |
Get all active plugins for a slot. |
Protected Member Functions | |
setSlotObject ($a_slot) | |
Set Plugin Slot. | |
getSlotObject () | |
Get Plugin Slot. | |
getClassesDirectory () | |
Get Plugin's classes Directory. | |
getLanguageDirectory () | |
Get Plugin's language Directory. | |
slotInit () | |
Object initialization done by slot. | |
init () | |
Object initialization. | |
beforeActivation () | |
Before activation processing. | |
afterActivation () | |
After activation processing. | |
initAutoLoad () | |
Init auto loader. |
Private Member Functions | |
setId ($a_id) | |
Set Id. | |
setLastUpdateVersion ($a_lastupdateversion) | |
Set Version of last update. | |
setVersion ($a_version) | |
Set Current Version (from plugin.php file). | |
setIliasMinVersion ($a_iliasminversion) | |
Set Required ILIAS min. | |
setIliasMaxVersion ($a_iliasmaxversion) | |
Set Required ILIAS max. | |
setActive ($a_active) | |
Set Active. | |
__init () | |
Default initialization. | |
autoLoad ($a_classname) | |
Auto load implementation. |
Definition at line 16 of file class.ilPlugin.php.
|
final |
Constructor.
Definition at line 21 of file class.ilPlugin.php.
References __init(), and initAutoLoad().
|
finalprivate |
Default initialization.
Definition at line 582 of file class.ilPlugin.php.
References $ilDB, $lng, getComponentName(), getComponentType(), getPluginName(), getPluginRecord(), getPrefix(), getSlotId(), init(), setActive(), setDBVersion(), setId(), setIliasMaxVersion(), setIliasMinVersion(), setLastUpdateVersion(), setSlotObject(), setVersion(), and slotInit().
Referenced by __construct().
|
staticfinal |
Get plugin directory.
Definition at line 272 of file class.ilPlugin.php.
References ilPluginSlot\_getPluginsDirectory().
Referenced by _getImagePath(), and ilObjectDefinition\readDefinitionData().
|
staticfinal |
Get image path.
Definition at line 511 of file class.ilPlugin.php.
References $d, and _getDirectory().
Referenced by ilRepositoryObjectPlugin\_getIcon().
|
final |
Activate.
Definition at line 675 of file class.ilPlugin.php.
References $ilDB, $lng, $result, afterActivation(), beforeActivation(), getComponentName(), getComponentType(), getId(), getPluginName(), getSlotId(), needsUpdate(), and update().
|
final |
Add template content to placeholder variable.
Definition at line 537 of file class.ilPlugin.php.
References getDirectory().
|
protected |
After activation processing.
Definition at line 726 of file class.ilPlugin.php.
Referenced by activate().
|
finalprivate |
Auto load implementation.
string | class name |
Definition at line 935 of file class.ilPlugin.php.
References getClassesDirectory().
|
protected |
Before activation processing.
Reimplemented in ilRepositoryObjectPlugin.
Definition at line 715 of file class.ilPlugin.php.
Referenced by activate().
|
final |
Deactivate.
Definition at line 733 of file class.ilPlugin.php.
References $ilDB, $result, getComponentName(), getComponentType(), getPluginName(), and getSlotId().
|
final |
Get Active.
Definition at line 193 of file class.ilPlugin.php.
|
staticfinal |
Get all active plugins for a slot.
Definition at line 857 of file class.ilPlugin.php.
References $ilDB.
|
staticfinal |
Get array of all language files in the plugin.
Definition at line 310 of file class.ilPlugin.php.
Referenced by ilPluginsTableGUI\fillRow(), and updateLanguages().
|
finalprotected |
Get Plugin's classes Directory.
Definition at line 284 of file class.ilPlugin.php.
References getDirectory().
Referenced by autoLoad(), and includeClass().
|
abstract |
Get Component Name.
Must be overwritten in plugin class of plugin slot. (and should be made final)
Reimplemented in ilPageComponentPlugin, ilShibbolethAuthenticationPlugin, ilEventHookPlugin, ilLDAPPlugin, ilUserInterfaceHookPlugin, ilPersonalDesktopHookPlugin, ilRepositoryObjectPlugin, ilSurveyQuestionsPlugin, and ilQuestionsPlugin.
Referenced by __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)
Reimplemented in ilLDAPPlugin, ilPageComponentPlugin, ilShibbolethAuthenticationPlugin, ilEventHookPlugin, ilUserInterfaceHookPlugin, ilPersonalDesktopHookPlugin, ilRepositoryObjectPlugin, ilSurveyQuestionsPlugin, and ilQuestionsPlugin.
Referenced by __init(), activate(), deactivate(), isActive(), needsUpdate(), update(), updateDatabase(), and writeDBVersion().
|
staticfinal |
Get plugin configure class name.
@return |
Definition at line 364 of file class.ilPlugin.php.
Referenced by ilPluginsTableGUI\fillRow(), and update().
|
staticfinal |
Get DB update script filename (full path)
Definition at line 382 of file class.ilPlugin.php.
Referenced by ilPluginsTableGUI\fillRow(), and ilPluginDBUpdate\ilPluginDBUpdate().
|
final |
Get DB Version.
Definition at line 233 of file class.ilPlugin.php.
Referenced by writeDBVersion().
|
final |
Get Plugin Directory.
Definition at line 264 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 93 of file class.ilPlugin.php.
Referenced by activate(), ilRepositoryObjectPlugin\beforeActivation(), and getPrefix().
|
final |
Get Required ILIAS max.
release.
Definition at line 173 of file class.ilPlugin.php.
|
final |
Get Required ILIAS min.
release.
Definition at line 153 of file class.ilPlugin.php.
|
final |
Get image path.
Definition at line 521 of file class.ilPlugin.php.
References getDirectory().
|
finalprotected |
Get Plugin's language Directory.
Definition at line 302 of file class.ilPlugin.php.
References getDirectory().
Referenced by updateLanguages().
|
final |
Get Version of last update.
Definition at line 113 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 __init(), activate(), ilRepositoryObjectPlugin\beforeActivation(), deactivate(), getDirectory(), 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 802 of file class.ilPlugin.php.
References $file, $ilDB, and ilPluginSlot\lookupSlotName().
Referenced by ilObjectPluginGUI\__construct(), ilObjectPlugin\__construct(), ilObjectCopySearchResultTableGUI\__construct(), SurveyQuestion\_getQuestionTypeName(), assQuestion\_getQuestionTypeName(), ilObjSurveyQuestionPool\_getQuestiontypes(), ilObjQuestionPool\_getQuestionTypes(), ilObjSurveyQuestionPool\_getQuestionTypeTranslations(), SurveyQuestion\_includeClass(), assQuestion\_includeClass(), ilObjComponentSettingsGUI\activatePlugin(), ilObjComponentSettingsGUI\deactivatePlugin(), ilObjQuestionPool\getQuestionTypeTranslations(), ilObjTest\getQuestionTypeTranslations(), ilObjectPluginListGUI\init(), ilObjLanguage\refreshAll(), ilObjComponentSettingsGUI\refreshLanguages(), ilObjectCopyGUI\showTargetSelectionTree(), ilObjComponentSettingsGUI\updatePlugin(), and ilObjQuestionPoolGUI\uploadQplObject().
|
staticfinal |
Get record from il_plugin table.
Definition at line 546 of file class.ilPlugin.php.
References $ilDB.
Referenced by __init(), and ilPluginAdmin\getPluginData().
|
final |
Get plugin prefix, used for lang vars.
Definition at line 372 of file class.ilPlugin.php.
References getId(), and getSlotObject().
Referenced by __init(), getTablePrefix(), loadLanguageModule(), txt(), update(), and updateLanguages().
|
abstract |
Get Slot Name.
Must be overwritten in plugin class of plugin slot. (and should be made final)
Reimplemented in ilPageComponentPlugin, ilShibbolethAuthenticationPlugin, ilEventHookPlugin, ilLDAPPlugin, ilUserInterfaceHookPlugin, ilPersonalDesktopHookPlugin, ilRepositoryObjectPlugin, ilSurveyQuestionsPlugin, and ilQuestionsPlugin.
|
abstract |
Get Slot ID.
Must be overwritten in plugin class of plugin slot. (and should be made final)
Reimplemented in ilPageComponentPlugin, ilShibbolethAuthenticationPlugin, ilEventHookPlugin, ilLDAPPlugin, ilUserInterfaceHookPlugin, ilPersonalDesktopHookPlugin, ilRepositoryObjectPlugin, ilSurveyQuestionsPlugin, and ilQuestionsPlugin.
Referenced by __init(), activate(), deactivate(), isActive(), needsUpdate(), update(), updateDatabase(), and writeDBVersion().
|
finalprotected |
Get Plugin Slot.
Definition at line 213 of file class.ilPlugin.php.
Referenced by getDirectory(), and getPrefix().
|
final |
Get css file location.
Definition at line 529 of file class.ilPlugin.php.
References getDirectory().
|
final |
Get db table plugin prefix.
Definition at line 391 of file class.ilPlugin.php.
References getPrefix().
Referenced by updateDatabase().
|
final |
Get template from plugin.
Definition at line 501 of file class.ilPlugin.php.
References $tpl, and getDirectory().
|
final |
Get Current Version (from plugin.php file).
Definition at line 133 of file class.ilPlugin.php.
Referenced by update().
|
staticfinal |
Has the plugin a configure class?
string | slot directory |
string | plugin name |
Definition at line 348 of file class.ilPlugin.php.
Referenced by ilPluginsTableGUI\fillRow().
|
final |
Include (once) a class file.
Definition at line 292 of file class.ilPlugin.php.
References getClassesDirectory().
Referenced by ilUserInterfaceHookPlugin\getUIClassInstance().
|
protected |
Object initialization.
Can be overwritten by plugin class (and should be made protected final)
Definition at line 646 of file class.ilPlugin.php.
Referenced by __init().
|
protected |
Init auto loader.
Definition at line 923 of file class.ilPlugin.php.
Referenced by __construct().
|
final |
Check whether plugin is active.
Definition at line 653 of file class.ilPlugin.php.
References getComponentName(), getComponentType(), getPluginName(), and getSlotId().
|
final |
Load language module for plugin.
Definition at line 472 of file class.ilPlugin.php.
References $lng, and getPrefix().
ilPlugin::lookupIdForName | ( | $a_ctype, | |
$a_cname, | |||
$a_slot_id, | |||
$a_plugin_name | |||
) |
Lookup id for name.
Definition at line 902 of file class.ilPlugin.php.
References $ilDB.
Referenced by ilObjectDefinition\getGroupedRepositoryObjectTypes(), and ilObjectDefinition\readDefinitionData().
ilPlugin::lookupNameForId | ( | $a_ctype, | |
$a_cname, | |||
$a_slot_id, | |||
$a_plugin_id | |||
) |
Lookup name for id.
Definition at line 882 of file class.ilPlugin.php.
References $ilDB.
Referenced by ilObjectPluginGUI\__construct(), ilObjectPlugin\__construct(), ilObjectCopySearchResultTableGUI\__construct(), ilRepositoryObjectPlugin\_getIcon(), ilRepositoryObjectPlugin\_getName(), ilObjPluginDispatchGUI\forward(), ilObjectPluginListGUI\init(), ilRepositoryObjectPluginSlot\isTypePlugin(), and ilObjectCopyGUI\showTargetSelectionTree().
|
staticfinal |
Lookup information data in il_plugin.
Definition at line 837 of file class.ilPlugin.php.
References $ilDB.
Referenced by ilPluginSlot\getPluginsInformation().
|
static |
Lookup language text.
Definition at line 491 of file class.ilPlugin.php.
References $lng.
Referenced by ilObjRole\__getPermissionDefinitions(), ilPermission2GUI\__showPermissionsCreateSection(), ilPermission2GUI\__showPermissionsGeneralSection(), ilPermission2GUI\__showPermissionsObjectSection(), ilPermission2GUI\__showPermissionsRBACSection(), ilObjRole\_getTranslation(), ilObject\_prepareCloneSelection(), ilContainerContentGUI\addHeaderRow(), ilPDSelectedItemsBlockGUI\addHeaderRow(), ilContainerContentGUI\addMessageRow(), ilObjSystemFolderGUI\checkObject(), ilTrashTableGUI\fillRow(), ilSearchResultTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilObjectRoleTemplatePermissionTableGUI\fillRow(), ilObjectRolePermissionTableGUI\fillRow(), ilLPObjectStatisticsTypesTableGUI\getItems(), ilObjectStatusGUI\getPermissionInfo(), ilObjectListGUI\insertIconsAndCheckboxes(), ilObjRoleGUI\perm2Object(), ilObjRoleTemplateGUI\permObject(), ilObjRoleGUI\permObject(), ilRepUtilGUI\showDeleteConfirmation(), and ilContainerGUI\showPossibleSubObjects().
|
final |
Check whether update is needed.
Definition at line 664 of file class.ilPlugin.php.
References getComponentName(), getComponentType(), getPluginName(), and getSlotId().
Referenced by activate().
|
finalprivate |
Set Active.
boolean | $a_active | Active |
Definition at line 183 of file class.ilPlugin.php.
Referenced by __init().
|
final |
Set DB Version.
int | $a_dbversion | DB Version |
Definition at line 223 of file class.ilPlugin.php.
Referenced by __init(), and writeDBVersion().
|
finalprivate |
Set Id.
string | $a_id | Id |
Definition at line 83 of file class.ilPlugin.php.
Referenced by __init().
|
finalprivate |
Set Required ILIAS max.
release.
string | $a_iliasmaxversion | Required ILIAS max. release |
Definition at line 163 of file class.ilPlugin.php.
Referenced by __init().
|
finalprivate |
Set Required ILIAS min.
release.
string | $a_iliasminversion | Required ILIAS min. release |
Definition at line 143 of file class.ilPlugin.php.
Referenced by __init().
|
finalprivate |
Set Version of last update.
string | $a_lastupdateversion | Version of last update |
Definition at line 103 of file class.ilPlugin.php.
Referenced by __init().
|
finalprotected |
Set Plugin Slot.
object | $a_slot | Plugin Slot |
Definition at line 203 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 123 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 final)
Reimplemented in ilPageComponentPlugin, ilShibbolethAuthenticationPlugin, ilEventHookPlugin, ilLDAPPlugin, ilUserInterfaceHookPlugin, ilPersonalDesktopHookPlugin, ilRepositoryObjectPlugin, ilSurveyQuestionsPlugin, and ilQuestionsPlugin.
Referenced by __init().
|
final |
Get Language Variable (prefix will be prepended automatically)
Definition at line 482 of file class.ilPlugin.php.
References $lng, and getPrefix().
|
final |
Update plugin.
Definition at line 753 of file class.ilPlugin.php.
References $ilCtrl, $ilDB, $result, getComponentName(), getComponentType(), getConfigureClassName(), getDirectory(), getPluginName(), getPrefix(), getSlotId(), getVersion(), updateDatabase(), and updateLanguages().
Referenced by activate().
ilPlugin::updateDatabase | ( | ) |
Update database.
Definition at line 438 of file class.ilPlugin.php.
References $ilDB, $lng, $result, $row, getComponentName(), getComponentType(), getPluginName(), getSlotId(), and getTablePrefix().
Referenced by update().
|
final |
Update all languages.
Definition at line 399 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 243 of file class.ilPlugin.php.
References $ilDB, getComponentName(), getComponentType(), getDBVersion(), getPluginName(), getSlotId(), and setDBVersion().