ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Administration class for plugins. More...
Public Member Functions | |
__construct () | |
Constructor. More... | |
getVersion ($a_ctype, $a_cname, $a_slot_id, $a_pname) | |
Get version of plugin. More... | |
getIliasMinVersion ($a_ctype, $a_cname, $a_slot_id, $a_pname) | |
Get Ilias Min Version. More... | |
getIliasMaxVersion ($a_ctype, $a_cname, $a_slot_id, $a_pname) | |
Get Ilias Max Version. More... | |
getId ($a_ctype, $a_cname, $a_slot_id, $a_pname) | |
Get ID. More... | |
isActive ($a_ctype, $a_cname, $a_slot_id, $a_pname) | |
Checks whether plugin is active (include version checks) More... | |
exists ($a_ctype, $a_cname, $a_slot_id, $a_pname) | |
Checks whether plugin exists. More... | |
needsUpdate ($a_ctype, $a_cname, $a_slot_id, $a_pname) | |
Get version. More... | |
getAllData ($a_ctype, $a_cname, $a_slot_id, $a_pname) | |
Get all data from file in an array. More... | |
hasLearningProgress ($a_ctype, $a_cname, $a_slot_id, $a_pname) | |
Checks whether plugin has active learning progress. More... | |
supportsExport ($a_ctype, $a_cname, $a_slot_id, $a_pname) | |
Checks whether plugin supports export/import. More... | |
Static Public Member Functions | |
static | getActivePluginsForSlot ($a_ctype, $a_cname, $a_slot_id) |
Get all active plugins for a slot. More... | |
static | getPluginObject ($a_ctype, $a_cname, $a_slot_id, $a_pname) |
Get Plugin Object. More... | |
static | includeClass ($a_ctype, $a_cname, $a_slot_id, $a_pname, $a_class_file_name) |
Get Plugin Object. More... | |
Data Fields | |
$got_data = false | |
Static Public Attributes | |
static | $active_plugins = array() |
static | $plugin_objects = array() |
Private Member Functions | |
getPluginData ($a_ctype, $a_cname, $a_slot_id, $a_pname) | |
Get basic data of plugin from plugin.php. More... | |
Administration class for plugins.
Handles basic data from plugin.php files.
Definition at line 16 of file class.ilPluginAdmin.php.
ilPluginAdmin::__construct | ( | ) |
ilPluginAdmin::exists | ( | $a_ctype, | |
$a_cname, | |||
$a_slot_id, | |||
$a_pname | |||
) |
Checks whether plugin exists.
string | $a_ctype | Component Type |
string | $a_cname | Component Name |
string | $a_slot_id | Slot ID |
string | $a_pname | Plugin Name |
Definition at line 243 of file class.ilPluginAdmin.php.
References data, and getPluginData().
|
static |
Get all active plugins for a slot.
Definition at line 280 of file class.ilPluginAdmin.php.
References ilPlugin\getActivePluginsForSlot().
Referenced by ilDclPluginFieldRepresentation\buildFieldCreationInput(), and ilAppEventHandler\raise().
ilPluginAdmin::getAllData | ( | $a_ctype, | |
$a_cname, | |||
$a_slot_id, | |||
$a_pname | |||
) |
Get all data from file in an array.
string | $a_ctype | Component Type |
string | $a_cname | Component Name |
string | $a_slot_id | Slot ID |
string | $a_pname | Plugin Name |
Definition at line 271 of file class.ilPluginAdmin.php.
References data, and getPluginData().
ilPluginAdmin::getId | ( | $a_ctype, | |
$a_cname, | |||
$a_slot_id, | |||
$a_pname | |||
) |
Get ID.
string | $a_ctype | Component Type |
string | $a_cname | Component Name |
string | $a_slot_id | Slot ID |
string | $a_pname | Plugin Name |
Definition at line 208 of file class.ilPluginAdmin.php.
References data, and getPluginData().
ilPluginAdmin::getIliasMaxVersion | ( | $a_ctype, | |
$a_cname, | |||
$a_slot_id, | |||
$a_pname | |||
) |
Get Ilias Max Version.
string | $a_ctype | Component Type |
string | $a_cname | Component Name |
string | $a_slot_id | Slot ID |
string | $a_pname | Plugin Name |
Definition at line 194 of file class.ilPluginAdmin.php.
References data, and getPluginData().
ilPluginAdmin::getIliasMinVersion | ( | $a_ctype, | |
$a_cname, | |||
$a_slot_id, | |||
$a_pname | |||
) |
Get Ilias Min Version.
string | $a_ctype | Component Type |
string | $a_cname | Component Name |
string | $a_slot_id | Slot ID |
string | $a_pname | Plugin Name |
Definition at line 180 of file class.ilPluginAdmin.php.
References data, and getPluginData().
|
finalprivate |
Get basic data of plugin from plugin.php.
string | $a_ctype | Component Type |
string | $a_cname | Component Name |
string | $a_slot_id | Slot ID |
string | $a_pname | Plugin Name |
Definition at line 48 of file class.ilPluginAdmin.php.
References $ilDB, $lng, $version, array, data, ilPlugin\getPluginRecord(), ILIAS_VERSION_NUMERIC, ilComponent\isVersionGreaterString(), and ilPluginSlot\lookupSlotName().
Referenced by exists(), getAllData(), getId(), getIliasMaxVersion(), getIliasMinVersion(), getVersion(), hasLearningProgress(), isActive(), needsUpdate(), and supportsExport().
|
static |
Get Plugin Object.
string | $a_ctype | Component Type |
string | $a_cname | Component Name |
string | $a_slot_id | Slot ID |
string | $a_pname | Plugin Name |
Definition at line 302 of file class.ilPluginAdmin.php.
References ilPlugin\getPluginObject().
Referenced by ilUIHookProcessor\__construct(), ilTestSignatureGUI\__construct(), ilTabsGUI\__getHTML(), ilStartUpGUI\_checkGoto(), ilTemplate\addBlockFile(), ilDclPluginFieldRepresentation\buildFieldCreationInput(), ilObjComponentSettingsGUI\executeCommand(), ilTemplate\get(), ilContainerGUI\getAsynchItemListObject(), ilInitialisation\initStyle(), ilRendererFactory\loadAvailableRenderers(), ilTemplate\loadTemplatefile(), ilAppEventHandler\raise(), ilUtil\redirect(), ilObjContentObjectGUI\setilLMMenu(), and ilTemplate\show().
ilPluginAdmin::getVersion | ( | $a_ctype, | |
$a_cname, | |||
$a_slot_id, | |||
$a_pname | |||
) |
Get version of plugin.
string | $a_ctype | Component Type |
string | $a_cname | Component Name |
string | $a_slot_id | Slot ID |
string | $a_pname | Plugin Name |
Definition at line 166 of file class.ilPluginAdmin.php.
References data, and getPluginData().
ilPluginAdmin::hasLearningProgress | ( | $a_ctype, | |
$a_cname, | |||
$a_slot_id, | |||
$a_pname | |||
) |
Checks whether plugin has active learning progress.
string | $a_ctype | Component Type |
string | $a_cname | Component Name |
string | $a_slot_id | Slot ID |
string | $a_pname | Plugin Name |
Definition at line 344 of file class.ilPluginAdmin.php.
References data, and getPluginData().
|
static |
Get Plugin Object.
string | $a_ctype | Component Type |
string | $a_cname | Component Name |
string | $a_slot_id | Slot ID |
string | $a_pname | Plugin Name |
Definition at line 322 of file class.ilPluginAdmin.php.
References ilPlugin\getPluginObject().
ilPluginAdmin::isActive | ( | $a_ctype, | |
$a_cname, | |||
$a_slot_id, | |||
$a_pname | |||
) |
Checks whether plugin is active (include version checks)
string | $a_ctype | Component Type |
string | $a_cname | Component Name |
string | $a_slot_id | Slot ID |
string | $a_pname | Plugin Name |
Definition at line 222 of file class.ilPluginAdmin.php.
References data, and getPluginData().
ilPluginAdmin::needsUpdate | ( | $a_ctype, | |
$a_cname, | |||
$a_slot_id, | |||
$a_pname | |||
) |
Get version.
string | $a_ctype | Component Type |
string | $a_cname | Component Name |
string | $a_slot_id | Slot ID |
string | $a_pname | Plugin Name |
Definition at line 257 of file class.ilPluginAdmin.php.
References data, and getPluginData().
ilPluginAdmin::supportsExport | ( | $a_ctype, | |
$a_cname, | |||
$a_slot_id, | |||
$a_pname | |||
) |
Checks whether plugin supports export/import.
string | $a_ctype | Component Type |
string | $a_cname | Component Name |
string | $a_slot_id | Slot ID |
string | $a_pname | Plugin Name |
Definition at line 359 of file class.ilPluginAdmin.php.
References data, and getPluginData().
|
static |
Definition at line 24 of file class.ilPluginAdmin.php.
ilPluginAdmin::$got_data = false |
Definition at line 18 of file class.ilPluginAdmin.php.
|
static |
Definition at line 30 of file class.ilPluginAdmin.php.