4 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
5 include_once(
"Services/Component/classes/class.ilComponent.php");
24 $this->mode = $a_mode;
28 $this->
addColumn($lng->txt(
"cmps_plugin_slot"));
29 $this->
addColumn($lng->txt(
"cmps_plugins"));
34 "Services/Component");
45 include_once(
"./Services/Component/classes/class.ilModule.php");
48 foreach ($modules as $m)
52 foreach ($plugin_slots as $ps)
55 include_once(
"./Services/Component/classes/class.ilPluginSlot.php");
57 foreach ($slot->getPluginsInformation() as $p)
61 if (count($plugins) > 0)
63 $slots[] = array(
"slot_name" => $slot->getSlotName(),
65 "component_name" => $m[
"subdir"],
66 "slot_id" => $ps[
"id"],
67 "plugins" => $plugins);
71 include_once(
"./Services/Component/classes/class.ilService.php");
73 foreach ($services as $s)
77 foreach ($plugin_slots as $ps)
81 foreach ($slot->getPluginsInformation() as $p)
85 if (count($plugins) > 0)
87 $slots[] = array(
"slot_name" => $slot->getSlotName(),
89 "component_name" => $s[
"subdir"],
90 "slot_id" => $ps[
"id"],
91 "plugins" => $plugins);
110 $ilCtrl->setParameter($this->parent_obj,
"ctype", $a_set[
"component_type"]);
111 $ilCtrl->setParameter($this->parent_obj,
"cname", $a_set[
"component_name"]);
112 $ilCtrl->setParameter($this->parent_obj,
"slot_id", $a_set[
"slot_id"]);
113 $this->tpl->setCurrentBlock(
"cmd");
114 $this->tpl->setVariable(
"TXT_CMD", $lng->txt(
"administrate"));
115 $this->tpl->setVariable(
"HREF_CMD",
116 $ilCtrl->getLinkTarget($this->parent_obj,
"showPluginSlot"));
117 $this->tpl->parseCurrentBlock();
119 foreach ($a_set[
"plugins"] as $p)
121 $this->tpl->setCurrentBlock(
"plugin");
122 $this->tpl->setVariable(
"TXT_PLUGIN_NAME", $p[
"name"]);
123 $this->tpl->parseCurrentBlock();
125 $this->tpl->setVariable(
"TXT_SLOT_NAME",
126 $a_set[
"slot_name"]);
127 $this->tpl->setVariable(
"TXT_COMP_NAME",
128 $a_set[
"component_type"].
"/".$a_set[
"component_name"]);