3 include_once(
"./classes/class.ilObjectGUI.php");
24 public function __construct($a_data, $a_id, $a_call_by_reference =
true, $a_prepare_output =
true)
29 $this->lng->loadLanguageModule(
'cmps');
42 $next_class = $this->ctrl->getNextClass($this);
43 $cmd = $this->ctrl->getCmd();
47 if(!$ilAccess->checkAccess(
'read',
'',$this->object->getRefId()))
49 $ilErr->raiseError($this->lng->txt(
'no_permission'),$ilErr->WARNING);
54 case 'ilpermissiongui':
55 $this->tabs_gui->setTabActive(
'perm_settings');
56 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
58 $ret =& $this->ctrl->forwardCommand($perm_gui);
65 if (substr(strtolower($next_class), strlen($next_class) - 9) ==
"configgui")
67 $path = $ilCtrl->lookupClassPath(strtolower($next_class));
71 $nc =
new $next_class();
76 $nc->setPluginObject($pl);
78 $ret = $this->ctrl->forwardCommand($nc);
105 global $rbacsystem, $ilAccess,
$lng;
107 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
109 $this->tabs_gui->addTab(
"plugins",
110 $lng->txt(
"cmps_plugins"),
111 $this->ctrl->getLinkTarget($this,
"listPlugins"));
113 $this->tabs_gui->addTab(
"modules",
114 $lng->txt(
"cmps_modules"),
115 $this->ctrl->getLinkTarget($this,
"listModules"));
117 $this->tabs_gui->addTab(
"services",
118 $lng->txt(
"cmps_services"),
119 $this->ctrl->getLinkTarget($this,
"listServices"));
122 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
124 $this->tabs_gui->addTab(
"perm_settings",
125 $lng->txt(
"perm_settings"),
126 $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"));
129 if (
$_GET[
"ctype"] ==
"Services")
131 $this->tabs_gui->activateTab(
"services");
142 $this->tabs_gui->activateTab(
'modules');
144 $tpl =
new ilTemplate(
"tpl.component_list.html",
true,
true,
"Services/Component");
153 include_once(
"./Services/Component/classes/class.ilComponentsTableGUI.php");
156 $tpl->setVariable(
"TABLE", $comp_table->getHTML());
157 $this->tpl->setContent(
$tpl->get());
167 $this->tabs_gui->activateTab(
'services');
169 $tpl =
new ilTemplate(
"tpl.component_list.html",
true,
true,
"Services/Component");
172 $tpl->setVariable(
"HREF_REFRESH_PLUGINS_INFORMATION",
173 $ilCtrl->getLinkTarget($this,
"refreshPluginsInformation"));
174 $tpl->setVariable(
"TXT_REFRESH_PLUGINS_INFORMATION",
175 $lng->txt(
"cmps_refresh_plugins_inf"));
177 include_once(
"./Services/Component/classes/class.ilComponentsTableGUI.php");
180 $tpl->setVariable(
"TABLE", $comp_table->getHTML());
181 $this->tpl->setContent(
$tpl->get());
192 global
$tpl, $ilTabs;
194 $ilTabs->activateTab(
"plugins");
195 include_once(
"./Services/Component/classes/class.ilPluginsOverviewTableGUI.php");
197 $tpl->setContent($table->getHTML());
208 if (is_array(
$_POST[
"obj_pos"]))
210 foreach(
$_POST[
"obj_pos"] as $k => $v)
212 $ilSetting->set(
"obj_dis_creation_".$k, (
int)
$_POST[
"obj_dis_creation"][$k]);
217 $double = $ex_pos = array();
218 if (is_array(
$_POST[
"obj_pos"]))
221 foreach(
$_POST[
"obj_pos"] as $k => $v)
223 if (in_array($v, $ex_pos))
228 $ilSetting->set(
"obj_add_new_pos_".$k, $v);
232 if (count($double) == 0)
238 ilUtil::sendInfo($lng->txt(
"cmps_duplicate_positions").
" ".implode($double,
", "),
true);
241 $ilCtrl->redirect($this,
"listModules");
251 $ilTabs->clearTargets();
252 if (
$_GET[
"ctype"] ==
"Services")
254 $ilTabs->setBackTarget($lng->txt(
"cmps_services"),
255 $ilCtrl->getLinkTarget($this,
"listServices"));
259 $ilTabs->setBackTarget($lng->txt(
"cmps_modules"),
260 $ilCtrl->getLinkTarget($this,
"listModules"));
263 include_once(
"./Services/Component/classes/class.ilComponent.php");
266 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
271 $ne->
setValue($comp->getComponentType().
"/".$comp->getName().
" [".$comp->getId().
"]");
281 $ne->
setValue($comp->getPluginSlotDirectory(
$_GET[
"slot_id"]).
"/<Plugin_Name>");
286 $ne->
setValue(
"<".$lng->txt(
"cmps_main_dir").
">".
287 "/classes/class.il<Plugin_Name>Plugin.php");
292 $ne->
setValue(
"<".$lng->txt(
"cmps_main_dir").
">".
293 "/lang/ilias_<Language ID>.lang");
298 $ne->
setValue(
"<".$lng->txt(
"cmps_main_dir").
">".
299 "/sql/dbupdate.php");
304 $ne->
setValue($comp->getPluginSlotLanguagePrefix(
$_GET[
"slot_id"]).
"<Plugin_ID>_");
309 $ne->
setValue($comp->getPluginSlotLanguagePrefix(
$_GET[
"slot_id"]).
"<Plugin_ID>_");
312 $form->setTitle($lng->txt(
"cmps_plugin_slot"));
315 $tpl->setContent($form->getHTML());
316 $tpl->setTitle($comp->getComponentType().
"/".$comp->getName().
": ".
317 $lng->txt(
"cmps_plugin_slot").
" \"".$comp->getPluginSlotName(
$_GET[
"slot_id"]).
"\"");
318 $tpl->setDescription(
"");
328 $ilTabs->clearTargets();
329 $ilTabs->setBackTarget($lng->txt(
"cmps_plugins"),
330 $ilCtrl->getLinkTarget($this,
"listPlugins"));
332 include_once(
"./Services/Component/classes/class.ilComponent.php");
336 include_once(
"./Services/Component/classes/class.ilPluginsTableGUI.php");
339 $tpl->setContent($plugins_table->getHTML());
342 $tpl->setTitle($comp->getComponentType().
"/".$comp->getName().
": ".
343 $lng->txt(
"cmps_plugin_slot").
" \"".$comp->getPluginSlotName(
$_GET[
"slot_id"]).
"\"");
344 $tpl->setDescription(
"");
353 die (
"ilObjComponentSettigsGUI::refreshPluginsInformation: deprecated");
354 include_once(
"./Services/Component/classes/class.ilPlugin.php");
355 ilPlugin::refreshPluginXmlInformation();
359 $ilCtrl->redirect($this,
"listServices");
363 $ilCtrl->redirect($this,
"listModules");
374 include_once(
"./Services/Component/classes/class.ilPlugin.php");
395 $ilCtrl->setParameter($this,
"ctype",
$_GET[
"ctype"]);
396 $ilCtrl->setParameter($this,
"cname",
$_GET[
"cname"]);
397 $ilCtrl->setParameter($this,
"slot_id",
$_GET[
"slot_id"]);
398 $ilCtrl->redirect($this,
"showPluginSlot");
407 include_once(
"./Services/Component/classes/class.ilPlugin.php");
424 $ilCtrl->initBaseClass(
"iladministrationgui");
425 $_GET[
"cmd"] =
"jumpToPluginSlot";
426 $ilCtrl->setParameterByClass(
"iladministrationgui",
"ctype",
$_GET[
"ctype"]);
427 $ilCtrl->setParameterByClass(
"iladministrationgui",
"cname",
$_GET[
"cname"]);
428 $ilCtrl->setParameterByClass(
"iladministrationgui",
"slot_id",
$_GET[
"slot_id"]);
429 $ilCtrl->setTargetScript(
"ilias.php");
430 $ilCtrl->callBaseClass();
441 include_once(
"./Services/Component/classes/class.ilPlugin.php");
456 $ilCtrl->setParameter($this,
"ctype",
$_GET[
"ctype"]);
457 $ilCtrl->setParameter($this,
"cname",
$_GET[
"cname"]);
458 $ilCtrl->setParameter($this,
"slot_id",
$_GET[
"slot_id"]);
459 $ilCtrl->redirect($this,
"showPluginSlot");
469 include_once(
"./Services/Component/classes/class.ilPlugin.php");
473 $result = $pl->updateLanguages();
480 $ilCtrl->setParameter($this,
"ctype",
$_GET[
"ctype"]);
481 $ilCtrl->setParameter($this,
"cname",
$_GET[
"cname"]);
482 $ilCtrl->setParameter($this,
"slot_id",
$_GET[
"slot_id"]);
483 $ilCtrl->redirect($this,
"showPluginSlot");
493 include_once(
"./Services/Component/classes/class.ilPluginDBUpdate.php");
495 $_GET[
"slot_id"],
$_GET[
"pname"], $ilDB,
true);
497 $dbupdate->applyUpdate();
499 if ($dbupdate->updateMsg ==
"no_changes")
501 $message = $this->lng->txt(
"no_changes").
". ".$this->lng->txt(
"database_is_uptodate");
505 foreach ($dbupdate->updateMsg as
$row)
507 $message .= $this->lng->txt($row[
"msg"]).
": ".$row[
"nr"].
"<br/>";
515 $ilCtrl->setParameter($this,
"slot_id",
$_GET[
"slot_id"]);
516 $ilCtrl->redirect($this,
"showPluginSlot");