24 include_once(
"./Services/Table/classes/class.ilTableGUI.php");
25 include_once(
"classes/class.ilTabsGUI.php");
78 $this->lng->loadLanguageModule(
'administration');
83 $this->objDefinition =& $objDefinition;
86 $ilMainMenu->setActive(
"administration");
88 $this->creation_mode =
false;
90 $this->ctrl->saveParameter($this, array(
"ref_id",
"admin_mode"));
92 if ($_GET[
"admin_mode"] !=
"repository")
94 $_GET[
"admin_mode"] =
"settings";
98 $this->ctrl->setReturn($this,
"");
101 if (!empty($_GET[
"ref_id"]) && $tree->isInTree($_GET[
"ref_id"]))
103 $this->cur_ref_id = $_GET[
"ref_id"];
122 include_once
'./Services/MainMenu/classes/class.ilMainMenuGUI.php';
125 $ilias->raiseError(
"You are not entitled to access this page!",$ilias->error_obj->WARNING);
129 $new_type =
$_POST[
"new_type"]
132 if ($new_type !=
"" && $this->ctrl->getCmd() ==
"create")
134 $this->creation_mode =
true;
138 if ($this->creation_mode)
140 $obj_type = $new_type;
141 $class_name = $this->objDefinition->getClassName($obj_type);
142 $next_class = strtolower(
"ilObj".$class_name.
"GUI");
143 $this->ctrl->setCmdClass($next_class);
147 elseif ($this->ctrl->getCmdClass() ==
"ilobjlanguageextgui")
149 $next_class =
"ilobjlanguageextgui";
153 $next_class = $this->ctrl->getNextClass($this);
157 if (($next_class ==
"iladministrationgui" || $next_class ==
""
158 ) && ($this->ctrl->getCmd() ==
"return"))
162 $class_name = $this->objDefinition->getClassName($obj_type);
163 $next_class = strtolower(
"ilObj".$class_name.
"GUI");
164 $this->ctrl->setCmdClass($next_class);
165 $this->ctrl->setCmd(
"view");
168 $cmd = $this->ctrl->getCmd(
"frameset");
212 if ($next_class !=
"" && $next_class !=
"iladministrationgui")
214 $class_path = $this->ctrl->lookupClassPath($next_class);
216 include_once($class_path);
217 $class_name = $this->ctrl->getClassForClasspath($class_path);
218 if (($next_class ==
"ilobjrolegui" || $next_class ==
"ilobjusergui"
219 || $next_class ==
"ilobjroletemplategui"
220 || $next_class ==
"ilobjstylesheetgui"))
222 if (
$_GET[
"obj_id"] !=
"")
224 $this->gui_obj =
new $class_name(
"",
$_GET[
"obj_id"],
false,
false);
225 $this->gui_obj->setCreationMode(
false);
229 $this->gui_obj =
new $class_name(
"", $this->cur_ref_id,
true,
false);
230 $this->gui_obj->setCreationMode(
true);
237 $this->gui_obj =
new $class_name($this->cur_ref_id);
241 $this->gui_obj =
new $class_name(
"", $this->cur_ref_id,
true,
false);
243 $this->gui_obj->setCreationMode($this->creation_mode);
245 $tabs_out = ($new_type ==
"")
249 $this->ctrl->setReturn($this,
"return");
250 $ret =& $this->ctrl->forwardCommand($this->gui_obj);
251 $html = $this->gui_obj->getHTML();
255 $this->tpl->setVariable(
"OBJECTS", $html);
261 $cmd = $this->ctrl->getCmd(
"frameset");
275 include_once(
"Services/Frameset/classes/class.ilFramesetGUI.php");
278 $fs_gui->setMainFrameName(
"content");
279 $fs_gui->setSideFrameName(
"tree");
280 $fs_gui->setFrameSetTitle($this->lng->txt(
"administration"));
282 if (
$_GET[
"admin_mode"] !=
"repository")
284 $this->ctrl->setParameter($this,
"ref_id", SYSTEM_FOLDER_ID);
285 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
286 $fs_gui->setMainFrameSource(
287 $this->ctrl->getLinkTargetByClass(
"ilobjsystemfoldergui",
"view"));
288 $this->ctrl->setParameter($this,
"expand",
"1");
289 $fs_gui->setSideFrameSource(
290 $this->ctrl->getLinkTarget($this,
"showTree"));
294 $this->ctrl->setParameter($this,
"ref_id", ROOT_FOLDER_ID);
295 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"repository");
296 $fs_gui->setMainFrameSource(
297 $this->ctrl->getLinkTargetByClass(
"ilobjrootfoldergui",
"view"));
298 $this->ctrl->setParameter($this,
"expand",
"1");
299 $fs_gui->setSideFrameSource(
300 $this->ctrl->getLinkTarget($this,
"showTree"));
314 require_once
"./Services/Administration/classes/class.ilAdministrationExplorer.php";
317 $explorer->setExpand(
$_GET[
"expand"]);
318 $explorer->setExpandTarget($this->ctrl->getLinkTarget($this,
"showTree"));
319 $explorer->setUseStandardFrame(
true);
322 if (!$tree->getChilds(RECOVERY_FOLDER_ID))
324 $explorer->addFilter(
"recf");
328 if (
$_GET[
"admin_mode"] ==
"settings")
330 $explorer->addFilter(
"cat");
331 $explorer->addFilter(
"catr");
335 $explorer->addFilter(
"adm");
352 $explorer->setOutput(0);
353 $output = $explorer->getOutput();
354 $this->ctrl->setParameter($this,
"expand",
$_GET[
"expand"]);
365 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"ctype",
$_GET[
"ctype"]);
366 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"cname",
$_GET[
"cname"]);
367 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"slot_id",
$_GET[
"slot_id"]);
368 $ilCtrl->redirectByClass(
"ilobjcomponentsettingsgui",
"showPluginSlot");