5include_once(
"./Services/Component/classes/class.ilPlugin.php");
44 $rec = $cached_component->lookupPluginSlotById($this->
getSlotId());
62 $this->componenttype = $a_componenttype;
72 return $this->componenttype;
82 $this->componentname = $a_componentname;
92 return $this->componentname;
102 $this->slotid = $a_slotid;
112 return $this->slotid;
122 $this->slotname = $a_slotname;
132 return $this->slotname;
140 return "./Customizing/global/plugins/".$this->getComponentType().
141 "/".$this->getComponentName().
"/".$this->
getSlotName();
149 return "./Customizing/global/plugins/".$a_ctype.
160 $a_plugin_name.
"/plugin.php";
182 $a_plugin_name.
"/classes/class.il".$a_plugin_name.
"Plugin.php";
204 if ($this->prefix ==
"")
211 return $this->prefix;
219 global $ilPluginAdmin;
224 if (!@is_dir($pl_dir))
229 $dir = opendir($pl_dir);
232 while(
$file = readdir($dir))
238 if (@is_dir($pl_dir.
"/".
$file) && substr(
$file, 0, 1) !=
"." &&
239 is_file($pl_dir.
"/".
$file.
"/plugin.php"))
255 $plugin[
"version"] = $pdata[
"version"];
256 $plugin[
"id"] = $pdata[
"id"];
257 $plugin[
"is_active"] = $pdata[
"is_active"];
258 $plugin[
"inactive_reason"] = $pdata[
"inactive_reason"];
259 $plugin[
"needs_update"] = $pdata[
"needs_update"];
260 $plugin[
"ilias_min_version"] = $pdata[
"ilias_min_version"];
261 $plugin[
"ilias_max_version"] = $pdata[
"ilias_max_version"];
262 $plugin[
"activation_possible"] = $pdata[
"activation_possible"];
263 $plugin[
"responsible"] = $pdata[
"responsible"];
264 $plugin[
"responsible_mail"] = $pdata[
"responsible_mail"];
266 $plugin[
"name"] =
$file;
269 $plugin[
"class_file"] =
"class.il".$plugin[
"name"].
"Plugin.php";
271 $plugins[] = $plugin;
285 $rec = $cached_component->lookupPluginSlotByName($a_slot_name);
305 $rec = $cached_component->lookupPluginSlotById($a_slot_id);
324 global $ilPluginAdmin;
337 $recs = $cached_component->getIlPluginslotById();
344 foreach($recs as $rec)
346 $pos = strpos($rec[
"component"],
"/");
348 "component_type" => substr($rec[
"component"], 0, $pos),
349 "component_name" => substr($rec[
"component"], $pos + 1),
350 "slot_id" => $rec[
"id"],
351 "slot_name" => $rec[
"name"]
static lookupId($a_type, $a_name)
Lookup ID of a component.
checkClassFileAvailability($a_plugin_name)
Check whether Plugin class file is available for plugin or not.
setComponentName($a_componentname)
Set Component Name.
__construct($a_c_type, $a_c_name, $a_slot_id)
Constructor.
getActivePlugins()
Get active plugins of slot.
static lookupSlotName($a_ctype, $a_cname, $a_slot_id)
Lookup slot name for component and slot id.
read()
Read properties from DB.
setSlotId($a_slotid)
Set Slot ID.
static getAllSlots()
Get all plugin slots.
getPluginPhpFileName($a_plugin_name)
Get File name for plugin.php.
getComponentType()
Get Component Type.
getPrefix()
Get slot prefix, used for lang vars and db tables.
getPluginsInformation()
Get information an all plugins and their status.
getComponentName()
Get Component Name.
setSlotName($a_slotname)
Set Slot Name.
getPluginClassFileName($a_plugin_name)
Get Class File name for plugin.
checkPluginPhpFileAvailability($a_plugin_name)
Check whether plugin.php file is available for plugin or not.
_getPluginsDirectory($a_ctype, $a_cname, $a_slot_id)
Get plugins directory.
getPluginsDirectory()
Get directory of.
setComponentType($a_componenttype)
Set Component Type.
static lookupSlotId($a_ctype, $a_cname, $a_slot_name)
Lookup slot ID for component and slot name.
getSlotName()
Get Slot Name.
static createPluginRecord($a_ctype, $a_cname, $a_slot_id, $a_pname)
static lookupStoredData($a_ctype, $a_cname, $a_slot_id, $a_pname)
Lookup information data in il_plugin.