4 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
5 include_once(
"Services/Component/classes/class.ilComponent.php");
24 parent::__construct($a_parent_obj, $a_parent_cmd);
26 $this->
setId(
"cmpspl");
28 $this->
addColumn($lng->txt(
"cmps_plugin"),
"plugin_name");
29 $this->
addColumn($lng->txt(
"id"),
"plugin_id");
30 $this->
addColumn($lng->txt(
"cmps_plugin_slot"),
"slot_name");
31 $this->
addColumn($lng->txt(
"cmps_component"),
"component_name");
32 $this->
addColumn($lng->txt(
"active"),
"plugin_active");
40 "Services/Component");
44 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
54 include_once(
"./Services/Component/classes/class.ilModule.php");
56 foreach ($modules as $m)
60 foreach ($plugin_slots as $ps)
62 include_once(
"./Services/Component/classes/class.ilPluginSlot.php");
64 foreach ($slot->getPluginsInformation() as $p)
70 include_once(
"./Services/Component/classes/class.ilService.php");
72 foreach ($services as $s)
76 foreach ($plugin_slots as $ps)
79 foreach ($slot->getPluginsInformation() as $p)
110 "component_name" => $a_slot_subdir,
112 "plugin_id" => $a_plugin[
"id"],
113 "plugin_name" => $a_plugin[
"name"],
114 "plugin_active" => $a_plugin[
"is_active"],
115 "activation_possible" => $a_plugin[
"activation_possible"],
116 "needs_update" => $a_plugin[
"needs_update"],
132 $ilCtrl->setParameter($this->parent_obj,
"ctype", $a_set[
"component_type"]);
133 $ilCtrl->setParameter($this->parent_obj,
"cname", $a_set[
"component_name"]);
134 $ilCtrl->setParameter($this->parent_obj,
"slot_id", $a_set[
"slot_id"]);
138 $ilCtrl->setParameter($this->parent_obj,
"plugin_id", $a_set[
"plugin_id"]);
139 $action[$lng->txt(
"info")] = $ilCtrl->getLinkTarget($this->parent_obj,
"showPlugin");
140 $ilCtrl->setParameter($this->parent_obj,
"plugin_id",
"");
142 $ilCtrl->setParameter($this->parent_obj,
"pname", $a_set[
"plugin_name"]);
144 if ($a_set[
"plugin_active"])
146 if ($a_set[
"has_lang"])
148 $action[$lng->txt(
"cmps_refresh")] =
149 $ilCtrl->getLinkTarget($this->parent_obj,
"refreshLanguages");
152 if ($a_set[
"has_conf"])
154 $action[$lng->txt(
"cmps_configure")] =
158 $action[$lng->txt(
"cmps_deactivate")] =
159 $ilCtrl->getLinkTarget($this->parent_obj,
"deactivatePlugin");
161 else if ($a_set[
"activation_possible"])
163 $action[$lng->txt(
"cmps_activate")] =
164 $ilCtrl->getLinkTarget($this->parent_obj,
"activatePlugin");
168 if ($a_set[
"needs_update"])
170 $action[$lng->txt(
"cmps_update")] =
171 $ilCtrl->getLinkTarget($this->parent_obj,
"updatePlugin");
175 $action[$lng->txt(
"cmps_uninstall")] =
176 $ilCtrl->getLinkTarget($this->parent_obj,
"confirmUninstallPlugin");
178 $ilCtrl->setParameter($this->parent_obj,
"pname",
"");
183 $alist->setId($a_set[
"plugin_id"]);
184 $alist->setListTitle($lng->txt(
"actions"));
186 foreach($action as $caption =>
$cmd)
188 $alist->addItem($caption,
"",
$cmd);
191 $this->tpl->setVariable(
"ACTION_SELECTOR", $alist->getHTML());
194 $this->tpl->setVariable(
"TXT_SLOT_NAME", $a_set[
"slot_name"]);
195 $this->tpl->setVariable(
"TXT_COMP_NAME",
196 $a_set[
"component_type"].
"/".$a_set[
"component_name"]);
198 $act_str = ($a_set[
"plugin_active"])
199 ?
"<b>".$lng->txt(
"yes").
"</b>" 201 $this->tpl->setVariable(
"TXT_PLUGIN_NAME", $a_set[
"plugin_name"]);
202 $this->tpl->setVariable(
"TXT_PLUGIN_ID", $a_set[
"plugin_id"]);
203 $this->tpl->setVariable(
"TXT_ACTIVE", $act_str);
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
getSlotName()
Get Slot Name.
gatherPluginData($a_type, ilPluginSlot $a_slot, $a_slot_subdir, array $a_plugin)
Process plugin data for table row.
static getConfigureClassName($a_name)
Get plugin configure class name.
static getAvailableCoreServices()
Get all available core services.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
TableGUI class for components listing.
User interface class for advanced drop-down selection lists.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
static hasConfigureClass($a_slot_dir, $a_name)
Has the plugin a configure class?
static getAvailableLangFiles($a_lang_directory)
Get array of all language files in the plugin.
getPluginsDirectory()
Get directory of.
fillRow($a_set)
Standard Version of Fill Row.
getComponents()
Get pages for list.
setEnableHeader($a_enableheader)
Set Enable Header.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setLimit($a_limit=0, $a_default_limit=0)
static getAvailableCoreModules()
Get all available core modules.
static lookupPluginSlots($a_type, $a_name)
Lookup all plugin slots of a component.
__construct($a_parent_obj, $a_parent_cmd="")