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"))
252 $plugin[
"version"] = $pdata[
"version"];
253 $plugin[
"id"] = $pdata[
"id"];
254 $plugin[
"is_active"] = $pdata[
"is_active"];
255 $plugin[
"inactive_reason"] = $pdata[
"inactive_reason"];
256 $plugin[
"needs_update"] = $pdata[
"needs_update"];
257 $plugin[
"ilias_min_version"] = $pdata[
"ilias_min_version"];
258 $plugin[
"ilias_max_version"] = $pdata[
"ilias_max_version"];
259 $plugin[
"activation_possible"] = $pdata[
"activation_possible"];
260 $plugin[
"responsible"] = $pdata[
"responsible"];
261 $plugin[
"responsible_mail"] = $pdata[
"responsible_mail"];
263 $plugin[
"name"] =
$file;
266 $plugin[
"class_file"] =
"class.il".$plugin[
"name"].
"Plugin.php";
268 $plugins[] = $plugin;
283 $q =
"SELECT * FROM il_pluginslot WHERE component = ".
284 $ilDB->quote($a_ctype.
"/".$a_cname,
"text").
285 " AND name = ".$ilDB->quote($a_slot_name,
"text");
286 $set = $ilDB->query($q);
287 $rec = $ilDB->fetchAssoc($set);
298 $q =
"SELECT * FROM il_pluginslot WHERE component = ".
299 $ilDB->quote($a_ctype.
"/".$a_cname,
"text").
300 " AND id = ".$ilDB->quote($a_slot_id,
"text");
301 $set = $ilDB->query($q);
302 $rec = $ilDB->fetchAssoc($set);
311 global $ilPluginAdmin;
325 $set = $ilDB->query(
"SELECT * FROM il_pluginslot ");
327 while ($rec = $ilDB->fetchAssoc($set))
329 $pos = strpos($rec[
"component"],
"/");
331 "component_type" => substr($rec[
"component"], 0, $pos),
332 "component_name" => substr($rec[
"component"], $pos + 1),
333 "slot_id" => $rec[
"id"],
334 "slot_name" => $rec[
"name"]