24 include_once(
"./Services/Table/classes/class.ilTableGUI.php");
25 include_once(
"classes/class.ilTabsGUI.php");
79 $this->lng->loadLanguageModule(
'administration');
84 $this->objDefinition =& $objDefinition;
87 $ilMainMenu->setActive(
"administration");
89 $this->creation_mode =
false;
91 $this->ctrl->saveParameter($this, array(
"ref_id",
"admin_mode"));
93 if ($_GET[
"admin_mode"] !=
"repository")
95 $_GET[
"admin_mode"] =
"settings";
99 $this->ctrl->setReturn($this,
"");
102 if (!empty($_GET[
"ref_id"]) && $tree->isInTree($_GET[
"ref_id"]))
104 $this->cur_ref_id = $_GET[
"ref_id"];
123 include_once
'./Services/MainMenu/classes/class.ilMainMenuGUI.php';
126 $ilias->raiseError(
"You are not entitled to access this page!",$ilias->error_obj->WARNING);
130 $new_type =
$_POST[
"new_type"]
133 if ($new_type !=
"" && $this->ctrl->getCmd() ==
"create")
135 $this->creation_mode =
true;
139 if ($this->creation_mode)
141 $obj_type = $new_type;
142 $class_name = $this->objDefinition->getClassName($obj_type);
143 $next_class = strtolower(
"ilObj".$class_name.
"GUI");
144 $this->ctrl->setCmdClass($next_class);
148 elseif ($this->ctrl->getCmdClass() ==
"ilobjlanguageextgui")
150 $next_class =
"ilobjlanguageextgui";
154 $next_class = $this->ctrl->getNextClass($this);
158 if (($next_class ==
"iladministrationgui" || $next_class ==
""
159 ) && ($this->ctrl->getCmd() ==
"return"))
163 $class_name = $this->objDefinition->getClassName($obj_type);
164 $next_class = strtolower(
"ilObj".$class_name.
"GUI");
165 $this->ctrl->setCmdClass($next_class);
166 $this->ctrl->setCmd(
"view");
169 $cmd = $this->ctrl->getCmd(
"frameset");
213 if ($next_class !=
"" && $next_class !=
"iladministrationgui")
215 $class_path = $this->ctrl->lookupClassPath($next_class);
217 include_once($class_path);
218 $class_name = $this->ctrl->getClassForClasspath($class_path);
219 if (($next_class ==
"ilobjrolegui" || $next_class ==
"ilobjusergui"
220 || $next_class ==
"ilobjroletemplategui"
221 || $next_class ==
"ilobjstylesheetgui"))
223 if (
$_GET[
"obj_id"] !=
"")
225 $this->gui_obj =
new $class_name(
"",
$_GET[
"obj_id"],
false,
false);
226 $this->gui_obj->setCreationMode(
false);
230 $this->gui_obj =
new $class_name(
"", $this->cur_ref_id,
true,
false);
231 $this->gui_obj->setCreationMode(
true);
238 $this->gui_obj =
new $class_name($this->cur_ref_id);
242 $this->gui_obj =
new $class_name(
"", $this->cur_ref_id,
true,
false);
244 $this->gui_obj->setCreationMode($this->creation_mode);
246 $tabs_out = ($new_type ==
"")
250 $this->ctrl->setReturn($this,
"return");
251 $ret =& $this->ctrl->forwardCommand($this->gui_obj);
252 $html = $this->gui_obj->getHTML();
256 $this->tpl->setVariable(
"OBJECTS", $html);
262 $cmd = $this->ctrl->getCmd(
"frameset");
276 include_once(
"Services/Frameset/classes/class.ilFramesetGUI.php");
279 $fs_gui->setMainFrameName(
"content");
280 $fs_gui->setSideFrameName(
"tree");
281 $fs_gui->setFrameSetTitle($this->lng->txt(
"administration"));
283 if (
$_GET[
"admin_mode"] !=
"repository")
288 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
291 $this->ctrl->setParameterByClass(
"ilobjuserfoldergui",
"jmpToUser",
292 (
int)$_GET[
"jmpToUser"]);
293 $fs_gui->setMainFrameSource(
294 $this->ctrl->getLinkTargetByClass(
"ilobjuserfoldergui",
"jumpToUser"));
298 $fs_gui->setMainFrameSource(
299 $this->ctrl->getLinkTargetByClass(
"ilobjuserfoldergui",
"view"));
304 $this->ctrl->setParameter($this,
"ref_id", SYSTEM_FOLDER_ID);
305 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
309 $fs_gui->setMainFrameSource(
310 base64_decode(rawurldecode(
$_GET[
'fr'])));
314 $fs_gui->setMainFrameSource(
315 $this->ctrl->getLinkTargetByClass(
"ilobjsystemfoldergui",
"view"));
318 $this->ctrl->setParameter($this,
"expand",
"1");
319 $fs_gui->setSideFrameSource(
320 $this->ctrl->getLinkTarget($this,
"showTree"));
324 $this->ctrl->setParameter($this,
"ref_id", ROOT_FOLDER_ID);
325 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"repository");
326 $fs_gui->setMainFrameSource(
327 $this->ctrl->getLinkTargetByClass(
"ilobjrootfoldergui",
"view"));
328 $this->ctrl->setParameter($this,
"expand",
"1");
329 $fs_gui->setSideFrameSource(
330 $this->ctrl->getLinkTarget($this,
"showTree"));
344 require_once
"./Services/Administration/classes/class.ilAdministrationExplorer.php";
347 $explorer->setExpand(
$_GET[
"expand"]);
348 $explorer->setExpandTarget($this->ctrl->getLinkTarget($this,
"showTree"));
349 $explorer->setUseStandardFrame(
true);
352 if (!$tree->getChilds(RECOVERY_FOLDER_ID))
354 $explorer->addFilter(
"recf");
358 if (
$_GET[
"admin_mode"] ==
"settings")
360 $explorer->addFilter(
"cat");
361 $explorer->addFilter(
"catr");
365 $explorer->addFilter(
"adm");
381 $explorer->setOutput(0);
382 $output = $explorer->getOutput();
383 $this->ctrl->setParameter($this,
"expand",
$_GET[
"expand"]);
394 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"ctype",
$_GET[
"ctype"]);
395 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"cname",
$_GET[
"cname"]);
396 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"slot_id",
$_GET[
"slot_id"]);
397 $ilCtrl->redirectByClass(
"ilobjcomponentsettingsgui",
"showPluginSlot");