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);
235 if (@is_dir($pl_dir.
"/".
$file))
245 $plugin[
"version"] = $pdata[
"version"];
246 $plugin[
"id"] = $pdata[
"id"];
247 $plugin[
"is_active"] = $pdata[
"is_active"];
248 $plugin[
"inactive_reason"] = $pdata[
"inactive_reason"];
249 $plugin[
"needs_update"] = $pdata[
"needs_update"];
250 $plugin[
"ilias_min_version"] = $pdata[
"ilias_min_version"];
251 $plugin[
"ilias_max_version"] = $pdata[
"ilias_max_version"];
252 $plugin[
"activation_possible"] = $pdata[
"activation_possible"];
253 $plugin[
"responsible"] = $pdata[
"responsible"];
254 $plugin[
"responsible_mail"] = $pdata[
"responsible_mail"];
256 $plugin[
"name"] =
$file;
259 $plugin[
"class_file"] =
"class.il".$plugin[
"name"].
"Plugin.php";
261 $plugins[] = $plugin;
276 $q =
"SELECT * FROM il_pluginslot WHERE component = ".
277 $ilDB->quote($a_ctype.
"/".$a_cname,
"text").
278 " AND name = ".$ilDB->quote($a_slot_name,
"text");
279 $set = $ilDB->query($q);
280 $rec = $ilDB->fetchAssoc($set);
291 $q =
"SELECT * FROM il_pluginslot WHERE component = ".
292 $ilDB->quote($a_ctype.
"/".$a_cname,
"text").
293 " AND id = ".$ilDB->quote($a_slot_id,
"text");
294 $set = $ilDB->query($q);
295 $rec = $ilDB->fetchAssoc($set);
304 global $ilPluginAdmin;
318 $set = $ilDB->query(
"SELECT * FROM il_pluginslot ");
320 while ($rec = $ilDB->fetchAssoc($set))
322 $pos = strpos($rec[
"component"],
"/");
324 "component_type" => substr($rec[
"component"], 0, $pos),
325 "component_name" => substr($rec[
"component"], $pos + 1),
326 "slot_id" => $rec[
"id"],
327 "slot_name" => $rec[
"name"]