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
'./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);
235 $this->gui_obj =
new $class_name(
"", $this->cur_ref_id,
true,
false);
236 $this->gui_obj->setCreationMode($this->creation_mode);
238 $tabs_out = ($new_type ==
"")
242 $this->ctrl->setReturn($this,
"return");
243 $ret =& $this->ctrl->forwardCommand($this->gui_obj);
244 $html = $this->gui_obj->getHTML();
248 $this->tpl->setVariable(
"OBJECTS", $html);
254 $cmd = $this->ctrl->getCmd(
"frameset");
268 include_once(
"Services/Frameset/classes/class.ilFramesetGUI.php");
271 $fs_gui->setMainFrameName(
"content");
272 $fs_gui->setSideFrameName(
"tree");
273 $fs_gui->setFrameSetTitle($this->lng->txt(
"administration"));
275 if (
$_GET[
"admin_mode"] !=
"repository")
277 $this->ctrl->setParameter($this,
"ref_id", SYSTEM_FOLDER_ID);
278 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
279 $fs_gui->setMainFrameSource(
280 $this->ctrl->getLinkTargetByClass(
"ilobjsystemfoldergui",
"view"));
281 $this->ctrl->setParameter($this,
"expand",
"1");
282 $fs_gui->setSideFrameSource(
283 $this->ctrl->getLinkTarget($this,
"showTree"));
287 $this->ctrl->setParameter($this,
"ref_id", ROOT_FOLDER_ID);
288 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"repository");
289 $fs_gui->setMainFrameSource(
290 $this->ctrl->getLinkTargetByClass(
"ilobjrootfoldergui",
"view"));
291 $this->ctrl->setParameter($this,
"expand",
"1");
292 $fs_gui->setSideFrameSource(
293 $this->ctrl->getLinkTarget($this,
"showTree"));
307 require_once
"classes/class.ilAdministrationExplorer.php";
309 $tpl->addBlockFile(
"CONTENT",
"content",
"tpl.explorer.html");
313 $explorer->setExpand(
$_GET[
"expand"]);
314 $explorer->setExpandTarget($this->ctrl->getLinkTarget($this,
"showTree"));
317 if (!$tree->getChilds(RECOVERY_FOLDER_ID))
319 $explorer->addFilter(
"recf");
323 if (
$_GET[
"admin_mode"] ==
"settings")
325 $explorer->addFilter(
"cat");
326 $explorer->addFilter(
"catr");
330 $explorer->addFilter(
"adm");
347 $explorer->setOutput(0);
348 $output = $explorer->getOutput();
349 $tpl->setCurrentBlock(
"content");
351 $tpl->setVariable(
"EXP_REFRESH", $lng->txt(
"refresh"));
352 $tpl->setVariable(
"EXPLORER",$output);
353 $this->ctrl->setParameter($this,
"expand",
$_GET[
"expand"]);
354 $tpl->setVariable(
"ACTION", $this->ctrl->getLinkTarget($this,
"showTree"));
355 $tpl->parseCurrentBlock();