|
ILIAS
Release_3_10_x_branch Revision 61812
|
Inheritance diagram for ilPlugin:
Collaboration diagram for ilPlugin: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. | |
| 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. | |
| 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. | |
Static Public Member Functions | |
| static | getAvailableLangFiles ($a_lang_directory) |
| Get array of all language files in the plugin. | |
| static | getDBUpdateScriptName ($a_ctype, $a_cname, $a_slot_name, $a_pname) |
| Get DB update script filename (full 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. | |
| getDirectory () | |
| Get Plugin Directory. | |
| getClassesDirectory () | |
| Get Plugin's classes Directory. | |
| getLanguageDirectory () | |
| Get Plugin's language Directory. | |
| slotInit () | |
| Object initialization done by slot. | |
| init () | |
| Object initialization. | |
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. | |
Definition at line 35 of file class.ilPlugin.php.
|
final |
Constructor.
Definition at line 40 of file class.ilPlugin.php.
References __init().
Here is the call graph for this function:
|
finalprivate |
Default initialization.
Definition at line 531 of file class.ilPlugin.php.
References $lng, getComponentName(), getComponentType(), getPluginName(), getPluginRecord(), getPrefix(), getSlotId(), init(), setActive(), setDBVersion(), setId(), setIliasMaxVersion(), setIliasMinVersion(), setLastUpdateVersion(), setSlotObject(), setVersion(), and slotInit().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
final |
Activate.
Definition at line 619 of file class.ilPlugin.php.
References $lng, $result, getComponentName(), getComponentType(), getPluginName(), getSlotId(), needsUpdate(), and update().
Here is the call graph for this function:
|
final |
Add template content to placeholder variable.
Definition at line 486 of file class.ilPlugin.php.
References getDirectory().
Here is the call graph for this function:
|
final |
Deactivate.
Definition at line 653 of file class.ilPlugin.php.
References $result, getComponentName(), getComponentType(), getPluginName(), and getSlotId().
Here is the call graph for this function:
|
final |
Get Active.
Definition at line 211 of file class.ilPlugin.php.
|
staticfinal |
Get all active plugins for a slot.
Definition at line 773 of file class.ilPlugin.php.
References DB_FETCHMODE_ASSOC.
|
staticfinal |
Get array of all language files in the plugin.
Definition at line 318 of file class.ilPlugin.php.
Referenced by ilPluginsTableGUI\fillRow(), and updateLanguages().
Here is the caller graph for this function:
|
finalprotected |
Get Plugin's classes Directory.
Definition at line 292 of file class.ilPlugin.php.
References getDirectory().
Referenced by includeClass().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstract |
Get Component Name.
Must be overwritten in plugin class of plugin slot. (and should be made final)
Reimplemented in ilPageComponentPlugin, ilEventHookPlugin, ilSurveyQuestionsPlugin, and ilQuestionsPlugin.
Referenced by __init(), activate(), deactivate(), isActive(), needsUpdate(), update(), updateDatabase(), and writeDBVersion().
Here is the caller graph for this function:
|
abstract |
Get Component Type.
Must be overwritten in plugin class of plugin slot. (and should be made final)
Reimplemented in ilPageComponentPlugin, ilEventHookPlugin, ilSurveyQuestionsPlugin, and ilQuestionsPlugin.
Referenced by __init(), activate(), deactivate(), isActive(), needsUpdate(), update(), updateDatabase(), and writeDBVersion().
Here is the caller graph for this function:
|
staticfinal |
Get DB update script filename (full path)
Definition at line 362 of file class.ilPlugin.php.
Referenced by ilPluginsTableGUI\fillRow(), and ilPluginDBUpdate\ilPluginDBUpdate().
Here is the caller graph for this function:
|
final |
Get DB Version.
Definition at line 251 of file class.ilPlugin.php.
Referenced by writeDBVersion().
Here is the caller graph for this function:
|
finalprotected |
Get Plugin Directory.
Definition at line 282 of file class.ilPlugin.php.
References getPluginName(), and getSlotObject().
Referenced by addBlockFile(), getClassesDirectory(), getLanguageDirectory(), getStyleSheetLocation(), getTemplate(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
final |
Get Id.
Definition at line 111 of file class.ilPlugin.php.
Referenced by getPrefix().
Here is the caller graph for this function:
|
final |
Get Required ILIAS max.
release.
Definition at line 191 of file class.ilPlugin.php.
|
final |
Get Required ILIAS min.
release.
Definition at line 171 of file class.ilPlugin.php.
|
finalprotected |
Get Plugin's language Directory.
Definition at line 310 of file class.ilPlugin.php.
References getDirectory().
Referenced by updateLanguages().
Here is the call graph for this function:
Here is the caller graph for this function:
|
final |
Get Version of last update.
Definition at line 131 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(), deactivate(), getDirectory(), isActive(), needsUpdate(), update(), updateDatabase(), and writeDBVersion().
Here is the caller graph for this function:
|
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 719 of file class.ilPlugin.php.
References $file, and ilPluginSlot\lookupSlotName().
Referenced by SurveyQuestion\_getQuestionTypeName(), assQuestion\_getQuestionTypeName(), ilObjSurveyQuestionPool\_getQuestiontypes(), ilObjQuestionPool\_getQuestionTypes(), SurveyQuestion\_includeClass(), assQuestion\_includeClass(), ilObjComponentSettingsGUI\activatePlugin(), ilObjComponentSettingsGUI\deactivatePlugin(), ilObjComponentSettingsGUI\refreshLanguages(), ilObjComponentSettingsGUI\updatePlugin(), and ilObjQuestionPoolGUI\uploadQplObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticfinal |
Get record from il_plugin table.
Definition at line 495 of file class.ilPlugin.php.
References DB_FETCHMODE_ASSOC.
Referenced by __init(), and ilPluginAdmin\getPluginData().
Here is the caller graph for this function:
|
final |
Get plugin prefix, used for lang vars.
Definition at line 352 of file class.ilPlugin.php.
References getId(), and getSlotObject().
Referenced by __init(), loadLanguageModule(), txt(), update(), and updateLanguages().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstract |
Get Slot Name.
Must be overwritten in plugin class of plugin slot. (and should be made final)
Reimplemented in ilPageComponentPlugin, ilEventHookPlugin, ilSurveyQuestionsPlugin, and ilQuestionsPlugin.
|
abstract |
Get Slot ID.
Must be overwritten in plugin class of plugin slot. (and should be made final)
Reimplemented in ilPageComponentPlugin, ilEventHookPlugin, ilSurveyQuestionsPlugin, and ilQuestionsPlugin.
Referenced by __init(), activate(), deactivate(), isActive(), needsUpdate(), update(), updateDatabase(), and writeDBVersion().
Here is the caller graph for this function:
|
finalprotected |
Get Plugin Slot.
Definition at line 231 of file class.ilPlugin.php.
Referenced by getDirectory(), and getPrefix().
Here is the caller graph for this function:
|
final |
Get css file location.
Definition at line 478 of file class.ilPlugin.php.
References getDirectory().
Here is the call graph for this function:
|
final |
Get db table plugin prefix.
Definition at line 371 of file class.ilPlugin.php.
Referenced by updateDatabase().
Here is the caller graph for this function:
|
final |
Get template from plugin.
Definition at line 468 of file class.ilPlugin.php.
References $tpl, and getDirectory().
Here is the call graph for this function:
|
final |
Get Current Version (from plugin.php file).
Definition at line 151 of file class.ilPlugin.php.
Referenced by update().
Here is the caller graph for this function:
|
final |
Include (once) a class file.
Definition at line 300 of file class.ilPlugin.php.
References getClassesDirectory().
Here is the call graph for this function:
|
protected |
Object initialization.
Can be overwritten by plugin class (and should be made protected final)
Definition at line 590 of file class.ilPlugin.php.
Referenced by __init().
Here is the caller graph for this function:
|
final |
Check whether plugin is active.
Definition at line 597 of file class.ilPlugin.php.
References getComponentName(), getComponentType(), getPluginName(), and getSlotId().
Here is the call graph for this function:
|
final |
Load language module for plugin.
Definition at line 449 of file class.ilPlugin.php.
References $lng, and getPrefix().
Here is the call graph for this function:
|
staticfinal |
Lookup information data in il_plugin.
Definition at line 753 of file class.ilPlugin.php.
References DB_FETCHMODE_ASSOC.
Referenced by ilPluginSlot\getPluginsInformation().
Here is the caller graph for this function:
|
final |
Check whether update is needed.
Definition at line 608 of file class.ilPlugin.php.
References getComponentName(), getComponentType(), getPluginName(), and getSlotId().
Referenced by activate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
finalprivate |
Set Active.
| boolean | $a_active | Active |
Definition at line 201 of file class.ilPlugin.php.
Referenced by __init().
Here is the caller graph for this function:
|
final |
Set DB Version.
| int | $a_dbversion | DB Version |
Definition at line 241 of file class.ilPlugin.php.
Referenced by __init(), and writeDBVersion().
Here is the caller graph for this function:
|
finalprivate |
Set Id.
| string | $a_id | Id |
Definition at line 101 of file class.ilPlugin.php.
Referenced by __init().
Here is the caller graph for this function:
|
finalprivate |
Set Required ILIAS max.
release.
| string | $a_iliasmaxversion | Required ILIAS max. release |
Definition at line 181 of file class.ilPlugin.php.
Referenced by __init().
Here is the caller graph for this function:
|
finalprivate |
Set Required ILIAS min.
release.
| string | $a_iliasminversion | Required ILIAS min. release |
Definition at line 161 of file class.ilPlugin.php.
Referenced by __init().
Here is the caller graph for this function:
|
finalprivate |
Set Version of last update.
| string | $a_lastupdateversion | Version of last update |
Definition at line 121 of file class.ilPlugin.php.
Referenced by __init().
Here is the caller graph for this function:
|
finalprotected |
Set Plugin Slot.
| object | $a_slot | Plugin Slot |
Definition at line 221 of file class.ilPlugin.php.
Referenced by __init().
Here is the caller graph for this function:
|
finalprivate |
Set Current Version (from plugin.php file).
| string | $a_version | Current Version (from plugin.php file) |
Definition at line 141 of file class.ilPlugin.php.
Referenced by __init().
Here is the caller graph for this function:
|
abstractprotected |
Object initialization done by slot.
Must be overwritten in plugin class of plugin slot.
(and should be made protected final)
Reimplemented in ilPageComponentPlugin, ilEventHookPlugin, ilSurveyQuestionsPlugin, and ilQuestionsPlugin.
Referenced by __init().
Here is the caller graph for this function:
|
final |
Get Language Variable (prefix will be prepended automatically)
Definition at line 459 of file class.ilPlugin.php.
References $lng, and getPrefix().
Here is the call graph for this function:
|
final |
Update.
Definition at line 673 of file class.ilPlugin.php.
References $ilCtrl, $result, getComponentName(), getComponentType(), getDirectory(), getPluginName(), getPrefix(), getSlotId(), getVersion(), updateDatabase(), and updateLanguages().
Referenced by activate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPlugin::updateDatabase | ( | ) |
Update database.
Definition at line 415 of file class.ilPlugin.php.
References $lng, $result, getComponentName(), getComponentType(), getPluginName(), getSlotId(), and getTablePrefix().
Referenced by update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
final |
Update all languages.
Definition at line 379 of file class.ilPlugin.php.
References $ilCtrl, $lang, getAvailableLangFiles(), getLanguageDirectory(), getPrefix(), and ilObjLanguage\replaceLangModule().
Referenced by update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
final |
Write DB version to database.
| int | $a_dbversion | DB Version |
Definition at line 261 of file class.ilPlugin.php.
References getComponentName(), getComponentType(), getDBVersion(), getPluginName(), getSlotId(), and setDBVersion().
Here is the call graph for this function: