5 include_once(
"./Services/Component/classes/class.ilPlugin.php");
44 $q =
"SELECT * FROM il_pluginslot WHERE component = ".
46 " AND id = ".$ilDB->quote($this->
getSlotId(),
"text");
47 $set = $ilDB->query($q);
48 $rec = $ilDB->fetchAssoc($set);
59 $this->componenttype = $a_componenttype;
69 return $this->componenttype;
79 $this->componentname = $a_componentname;
89 return $this->componentname;
99 $this->slotid = $a_slotid;
109 return $this->slotid;
119 $this->slotname = $a_slotname;
129 return $this->slotname;
137 return "./Customizing/global/plugins/".$this->getComponentType().
138 "/".$this->getComponentName().
"/".$this->
getSlotName();
146 return "./Customizing/global/plugins/".$a_ctype.
157 $a_plugin_name.
"/plugin.php";
179 $a_plugin_name.
"/classes/class.il".$a_plugin_name.
"Plugin.php";
201 if ($this->prefix ==
"")
208 return $this->prefix;
216 global $ilPluginAdmin;
221 if (!@is_dir($pl_dir))
226 $dir = opendir($pl_dir);
229 while(
$file = readdir($dir))
235 if (@is_dir($pl_dir.
"/".
$file) && substr(
$file, 0, 1) !=
"." &&
236 is_file($pl_dir.
"/".
$file.
"/plugin.php"))
248 $plugin[
"version"] = $pdata[
"version"];
249 $plugin[
"id"] = $pdata[
"id"];
250 $plugin[
"is_active"] = $pdata[
"is_active"];
251 $plugin[
"inactive_reason"] = $pdata[
"inactive_reason"];
252 $plugin[
"needs_update"] = $pdata[
"needs_update"];
253 $plugin[
"ilias_min_version"] = $pdata[
"ilias_min_version"];
254 $plugin[
"ilias_max_version"] = $pdata[
"ilias_max_version"];
255 $plugin[
"activation_possible"] = $pdata[
"activation_possible"];
256 $plugin[
"responsible"] = $pdata[
"responsible"];
257 $plugin[
"responsible_mail"] = $pdata[
"responsible_mail"];
259 $plugin[
"name"] =
$file;
262 $plugin[
"class_file"] =
"class.il".$plugin[
"name"].
"Plugin.php";
264 $plugins[] = $plugin;
279 $q =
"SELECT * FROM il_pluginslot WHERE component = ".
280 $ilDB->quote($a_ctype.
"/".$a_cname,
"text").
281 " AND name = ".$ilDB->quote($a_slot_name,
"text");
282 $set = $ilDB->query($q);
283 $rec = $ilDB->fetchAssoc($set);
294 $q =
"SELECT * FROM il_pluginslot WHERE component = ".
295 $ilDB->quote($a_ctype.
"/".$a_cname,
"text").
296 " AND id = ".$ilDB->quote($a_slot_id,
"text");
297 $set = $ilDB->query($q);
298 $rec = $ilDB->fetchAssoc($set);
307 global $ilPluginAdmin;
321 $set = $ilDB->query(
"SELECT * FROM il_pluginslot ");
323 while ($rec = $ilDB->fetchAssoc($set))
325 $pos = strpos($rec[
"component"],
"/");
327 "component_type" => substr($rec[
"component"], 0, $pos),
328 "component_name" => substr($rec[
"component"], $pos + 1),
329 "slot_id" => $rec[
"id"],
330 "slot_name" => $rec[
"name"]