Helper methods for repository object plugins.
More...
|
static | addCreatableSubObjects ($a_obj_array) |
| Adds objects that can be created to the add new object list array. More...
|
|
static | isTypePlugin ($a_type, $a_active_status=true) |
| Checks whether a repository type is a plugin or not. More...
|
|
static | isTypePluginWithLP ($a_type, $a_active_status=true) |
| Check whether a repository type is a plugin which has active learning progress. More...
|
|
Helper methods for repository object plugins.
- Author
- Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
- Version
- $Id$
Definition at line 11 of file class.ilRepositoryObjectPluginSlot.php.
◆ addCreatableSubObjects()
static ilRepositoryObjectPluginSlot::addCreatableSubObjects |
( |
|
$a_obj_array | ) |
|
|
static |
Adds objects that can be created to the add new object list array.
Definition at line 16 of file class.ilRepositoryObjectPluginSlot.php.
References array, and IL_COMP_SERVICE.
18 global $ilPluginAdmin;
19 $pl_names = $ilPluginAdmin->getActivePluginsForSlot(
IL_COMP_SERVICE,
"Repository",
"robj");
20 foreach ($pl_names as $pl)
22 $pl_id = $ilPluginAdmin->getId(
IL_COMP_SERVICE,
"Repository",
"robj", $pl);
25 $a_obj_array[$pl_id] =
array(
"name" => $pl_id,
"lng" => $pl_id,
"plugin" =>
true);
Create styles array
The data for the language used.
◆ isTypePlugin()
static ilRepositoryObjectPluginSlot::isTypePlugin |
( |
|
$a_type, |
|
|
|
$a_active_status = true |
|
) |
| |
|
static |
Checks whether a repository type is a plugin or not.
Definition at line 35 of file class.ilRepositoryObjectPluginSlot.php.
References $a_type, IL_COMP_SERVICE, and ilPlugin\lookupNameForId().
37 global $ilPluginAdmin;
39 include_once(
"./Services/Component/classes/class.ilPlugin.php");
46 if ($ilPluginAdmin->exists(
IL_COMP_SERVICE,
"Repository",
"robj", $pname))
48 if (!$a_active_status ||
49 $ilPluginAdmin->isActive(
IL_COMP_SERVICE,
"Repository",
"robj", $pname))
static lookupNameForId($a_ctype, $a_cname, $a_slot_id, $a_plugin_id)
Lookup name for id.
◆ isTypePluginWithLP()
static ilRepositoryObjectPluginSlot::isTypePluginWithLP |
( |
|
$a_type, |
|
|
|
$a_active_status = true |
|
) |
| |
|
static |
Check whether a repository type is a plugin which has active learning progress.
- Parameters
-
string | $a_type | |
bool | $a_active_status | |
- Returns
- boolean
Definition at line 64 of file class.ilRepositoryObjectPluginSlot.php.
References $a_type, IL_COMP_SERVICE, and ilPlugin\lookupNameForId().
Referenced by ilLPCollectionOfRepositoryObjects\getPossibleItems(), ilLPTableBaseGUI\getPossibleTypes(), ilPluginLP\initPlugin(), and ilObjectLP\isSupportedObjectType().
66 global $ilPluginAdmin;
68 include_once(
"./Services/Component/classes/class.ilPlugin.php");
75 if ($ilPluginAdmin->exists(
IL_COMP_SERVICE,
"Repository",
"robj", $pname))
77 if (!$a_active_status ||
78 $ilPluginAdmin->isActive(
IL_COMP_SERVICE,
"Repository",
"robj", $pname))
80 if($ilPluginAdmin->hasLearningProgress(
IL_COMP_SERVICE,
"Repository",
"robj", $pname))
static lookupNameForId($a_ctype, $a_cname, $a_slot_id, $a_plugin_id)
Lookup name for id.
The documentation for this class was generated from the following file: