ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilAdministrationGUI Class Reference

Class ilAdministratioGUI. More...

+ Collaboration diagram for ilAdministrationGUI:

Public Member Functions

 ilAdministrationGUI ()
 Constructor public.
executeCommand ()
 execute command
 frameset ()
 output tree frameset
 showTree ()
 display tree view
 jumpToPluginSlot ()
 Special jump to plugin slot after ilCtrl has been reloaded.

Data Fields

 $lng
 $ilias
 $tpl
 $tree
 $rbacsystem
 $cur_ref_id
 $cmd
 $mode
 $ctrl

Detailed Description

Class ilAdministratioGUI.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
Id:
class.ilAdministrationGUI.php 22193 2009-10-25 15:37:39Z smeyer

ilAdministrationGUI: ilObjGroupGUI, ilObjFolderGUI, ilObjFileGUI, ilObjCourseGUI, ilCourseObjectivesGUI ilAdministrationGUI: ilObjSAHSLearningModuleGUI, ilObjChatGUI, ilObjForumGUI ilAdministrationGUI: ilObjLearningModuleGUI, ilObjDlBookGUI, ilObjGlossaryGUI ilAdministrationGUI: ilObjQuestionPoolGUI, ilObjSurveyQuestionPoolGUI, ilObjTestGUI ilAdministrationGUI: ilObjSurveyGUI, ilObjExerciseGUI, ilObjMediaPoolGUI, ilObjFileBasedLMGUI ilAdministrationGUI: ilObjCategoryGUI, ilObjUserGUI, ilObjRoleGUI, ilObjUserFolderGUI ilAdministrationGUI: ilObjiLincCourseGUI, ilObjiLincClassroomGUI, ilObjLinkResourceGUI ilAdministrationGUI: ilObjRoleTemplateGUI, ilObjStyleSheetGUI ilAdministrationGUI: ilObjRootFolderGUI, ilObjSessionGUI ilAdministrationGUI: ilObjSystemFolderGUI, ilObjRoleFolderGUI, ilObjAuthSettingsGUI ilAdministrationGUI: ilObjChatServerGUI, ilObjLanguageFolderGUI, ilObjMailGUI ilAdministrationGUI: ilObjObjectFolderGUI, ilObjPaymentSettingsGUI, ilObjRecoveryFolderGUI ilAdministrationGUI: ilObjSearchSettingsGUI, ilObjStyleSettingsGUI ilAdministrationGUI: ilObjAssessmentFolderGUI, ilObjExternalToolsSettingsGUI, ilObjUserTrackingGUI ilAdministrationGUI: ilObjAdvancedEditingGUI, ilObjPrivacySecurityGUI, ilObjNewsSettingsGUI ilAdministrationGUI: ilObjPersonalDesktopSettingsGUI, ilObjMediaCastGUI ilAdministrationGUI: ilObjLanguageExtGUI, ilObjMDSettingsGUI, ilObjComponentSettingsGUI ilAdministrationGUI: ilObjCalendarSettingsGUI, ilObjSurveyAdministrationGUI ilAdministrationGUI: ilObjCategoryReferenceGUI, ilObjCourseReferenceGUI, ilObjRemoteCourseGUI // BEGIN WebDAV ilAdministrationGUI: ilObjFileAccessSettingsGUI, ilPermissionGUI // END WebDAV

Definition at line 56 of file class.ilAdministrationGUI.php.

Member Function Documentation

& ilAdministrationGUI::executeCommand ( )

execute command

Definition at line 117 of file class.ilAdministrationGUI.php.

References $_GET, $_POST, $cmd, $ilias, $lng, $rbacsystem, $ret, $tree, ilMainMenuGUI\_checkAdministrationPermission(), ilObject\_lookupType(), and elseif().

{
global $tree, $rbacsystem, $ilias, $lng, $objDefinition;
// permission checks
include_once './Services/MainMenu/classes/class.ilMainMenuGUI.php';
{
$ilias->raiseError("You are not entitled to access this page!",$ilias->error_obj->WARNING);
}
// check creation mode
// determined by "new_type" parameter
$new_type = $_POST["new_type"]
? $_POST["new_type"]
: $_GET["new_type"];
if ($new_type != "" && $this->ctrl->getCmd() == "create")
{
$this->creation_mode = true;
}
// determine next class
if ($this->creation_mode)
{
$obj_type = $new_type;
$class_name = $this->objDefinition->getClassName($obj_type);
$next_class = strtolower("ilObj".$class_name."GUI");
$this->ctrl->setCmdClass($next_class);
}
// set next_class directly for page translations
// (no cmdNode is given in translation link)
elseif ($this->ctrl->getCmdClass() == "ilobjlanguageextgui")
{
$next_class = "ilobjlanguageextgui";
}
else
{
$next_class = $this->ctrl->getNextClass($this);
}
if (($next_class == "iladministrationgui" || $next_class == ""
) && ($this->ctrl->getCmd() == "return"))
{
// get GUI of current object
$obj_type = ilObject::_lookupType($this->cur_ref_id,true);
$class_name = $this->objDefinition->getClassName($obj_type);
$next_class = strtolower("ilObj".$class_name."GUI");
$this->ctrl->setCmdClass($next_class);
$this->ctrl->setCmd("view");
}
$cmd = $this->ctrl->getCmd("frameset");
//echo "<br>cmd:$cmd:nextclass:$next_class:-".$_GET["cmdClass"]."-".$_GET["cmd"]."-";
switch ($next_class)
{
/*
case "ilobjusergui":
include_once('./Services/User/classes/class.ilObjUserGUI.php');
if(!$_GET['obj_id'])
{
$this->gui_obj = new ilObjUserGUI("",$_GET['ref_id'],true, false);
$this->gui_obj->setCreationMode($this->creation_mode);
$this->prepareOutput(false);
$ret =& $this->ctrl->forwardCommand($this->gui_obj);
}
else
{
$this->gui_obj = new ilObjUserGUI("", $_GET['obj_id'],false, false);
$this->gui_obj->setCreationMode($this->creation_mode);
$this->prepareOutput(false);
$ret =& $this->ctrl->forwardCommand($this->gui_obj);
}
$this->tpl->show();
break;
*/
/*
case "ilobjuserfoldergui":
include_once('./Services/User/classes/class.ilObjUserFolderGUI.php');
$this->gui_obj = new ilObjUserFolderGUI("", $_GET['ref_id'],true, false);
$this->gui_obj->setCreationMode($this->creation_mode);
$this->prepareOutput(false);
$ret =& $this->ctrl->forwardCommand($this->gui_obj);
$this->tpl->show();
break;*/
default:
// forward all other classes to gui commands
if ($next_class != "" && $next_class != "iladministrationgui")
{
$class_path = $this->ctrl->lookupClassPath($next_class);
// get gui class instance
include_once($class_path);
$class_name = $this->ctrl->getClassForClasspath($class_path);
if (($next_class == "ilobjrolegui" || $next_class == "ilobjusergui"
|| $next_class == "ilobjroletemplategui"
|| $next_class == "ilobjstylesheetgui"))
{
if ($_GET["obj_id"] != "")
{
$this->gui_obj = new $class_name("", $_GET["obj_id"], false, false);
$this->gui_obj->setCreationMode(false);
}
else
{
$this->gui_obj = new $class_name("", $this->cur_ref_id, true, false);
$this->gui_obj->setCreationMode(true);
}
}
else
{
if ($objDefinition->isPlugin(ilObject::_lookupType($this->cur_ref_id,true)))
{
$this->gui_obj = new $class_name($this->cur_ref_id);
}
else
{
$this->gui_obj = new $class_name("", $this->cur_ref_id, true, false);
}
$this->gui_obj->setCreationMode($this->creation_mode);
}
$tabs_out = ($new_type == "")
? true
: false;
$this->ctrl->setReturn($this, "return");
$ret =& $this->ctrl->forwardCommand($this->gui_obj);
$html = $this->gui_obj->getHTML();
if ($html != "")
{
$this->tpl->setVariable("OBJECTS", $html);
}
$this->tpl->show();
}
else //
{
$cmd = $this->ctrl->getCmd("frameset");
$this->$cmd();
}
break;
}
}

+ Here is the call graph for this function:

ilAdministrationGUI::frameset ( )

output tree frameset

Definition at line 271 of file class.ilAdministrationGUI.php.

References $_GET, $tree, and exit.

{
global $tree;
include_once("Services/Frameset/classes/class.ilFramesetGUI.php");
$fs_gui = new ilFramesetGUI();
$fs_gui->setMainFrameName("content");
$fs_gui->setSideFrameName("tree");
$fs_gui->setFrameSetTitle($this->lng->txt("administration"));
if ($_GET["admin_mode"] != "repository") // settings
{
$this->ctrl->setParameter($this, "ref_id", SYSTEM_FOLDER_ID);
$this->ctrl->setParameterByClass("iladministrationgui", "admin_mode", "settings");
$fs_gui->setMainFrameSource(
$this->ctrl->getLinkTargetByClass("ilobjsystemfoldergui", "view"));
$this->ctrl->setParameter($this, "expand", "1");
$fs_gui->setSideFrameSource(
$this->ctrl->getLinkTarget($this, "showTree"));
}
else
{
$this->ctrl->setParameter($this, "ref_id", ROOT_FOLDER_ID);
$this->ctrl->setParameterByClass("iladministrationgui", "admin_mode", "repository");
$fs_gui->setMainFrameSource(
$this->ctrl->getLinkTargetByClass("ilobjrootfoldergui", "view"));
$this->ctrl->setParameter($this, "expand", "1");
$fs_gui->setSideFrameSource(
$this->ctrl->getLinkTarget($this, "showTree"));
}
$fs_gui->show();
}
ilAdministrationGUI::ilAdministrationGUI ( )

Constructor public.

Definition at line 72 of file class.ilAdministrationGUI.php.

References $_GET, $_POST, $ilCtrl, $ilias, $ilLog, $lng, $rbacsystem, $tpl, $tree, and ilUtil\isAPICall().

{
global $lng, $ilias, $tpl, $tree, $rbacsystem, $objDefinition,
$_GET, $ilCtrl, $ilLog, $ilMainMenu;
$this->lng =& $lng;
$this->lng->loadLanguageModule('administration');
$this->ilias =& $ilias;
$this->tpl =& $tpl;
$this->tree =& $tree;
$this->rbacsystem =& $rbacsystem;
$this->objDefinition =& $objDefinition;
$this->ctrl =& $ilCtrl;
$ilMainMenu->setActive("administration");
$this->creation_mode = false;
$this->ctrl->saveParameter($this, array("ref_id", "admin_mode"));
if ($_GET["admin_mode"] != "repository")
{
$_GET["admin_mode"] = "settings";
}
$this->ctrl->setReturn($this,"");
// determine current ref id and mode
if (!empty($_GET["ref_id"]) && $tree->isInTree($_GET["ref_id"]))
{
$this->cur_ref_id = $_GET["ref_id"];
}
else
{
//$this->cur_ref_id = $this->tree->getRootId();
$_POST = array();
$_GET["cmd"] = "";
}
}

+ Here is the call graph for this function:

ilAdministrationGUI::jumpToPluginSlot ( )

Special jump to plugin slot after ilCtrl has been reloaded.

Definition at line 361 of file class.ilAdministrationGUI.php.

References $_GET, and $ilCtrl.

{
global $ilCtrl;
$ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "ctype", $_GET["ctype"]);
$ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "cname", $_GET["cname"]);
$ilCtrl->setParameterByClass("ilobjcomponentsettingsgui", "slot_id", $_GET["slot_id"]);
$ilCtrl->redirectByClass("ilobjcomponentsettingsgui", "showPluginSlot");
}
ilAdministrationGUI::showTree ( )

display tree view

Definition at line 310 of file class.ilAdministrationGUI.php.

References $_GET, $lng, $tpl, and $tree.

{
global $tpl, $tree, $lng;
require_once "./Services/Administration/classes/class.ilAdministrationExplorer.php";
$explorer = new ilAdministrationExplorer("ilias.php?baseClass=ilAdministrationGUI&cmd=view");
$explorer->setExpand($_GET["expand"]);
$explorer->setExpandTarget($this->ctrl->getLinkTarget($this, "showTree"));
$explorer->setUseStandardFrame(true);
// hide RecoveryFolder if empty
if (!$tree->getChilds(RECOVERY_FOLDER_ID))
{
$explorer->addFilter("recf");
}
//$explorer->addFilter("rolf");
if ($_GET["admin_mode"] == "settings")
{
$explorer->addFilter("cat");
$explorer->addFilter("catr");
}
else
{
$explorer->addFilter("adm");
}
/*
$explorer->addFilter("root");
$explorer->addFilter("cat");
$explorer->addFilter("grp");
$explorer->addFilter("crs");
$explorer->addFilter("le");
$explorer->addFilter("frm");
$explorer->addFilter("lo");
$explorer->addFilter("rolf");
$explorer->addFilter("adm");
$explorer->addFilter("lngf");
$explorer->addFilter("usrf");
$explorer->addFilter("objf");
*/
//$explorer->setFiltered(false);
$explorer->setOutput(0);
$output = $explorer->getOutput();
$this->ctrl->setParameter($this, "expand", $_GET["expand"]);
echo $output;
}

Field Documentation

ilAdministrationGUI::$cmd

Definition at line 64 of file class.ilAdministrationGUI.php.

Referenced by executeCommand().

ilAdministrationGUI::$ctrl

Definition at line 66 of file class.ilAdministrationGUI.php.

ilAdministrationGUI::$cur_ref_id

Definition at line 63 of file class.ilAdministrationGUI.php.

ilAdministrationGUI::$ilias

Definition at line 59 of file class.ilAdministrationGUI.php.

Referenced by executeCommand(), and ilAdministrationGUI().

ilAdministrationGUI::$lng

Definition at line 58 of file class.ilAdministrationGUI.php.

Referenced by executeCommand(), ilAdministrationGUI(), and showTree().

ilAdministrationGUI::$mode

Definition at line 65 of file class.ilAdministrationGUI.php.

ilAdministrationGUI::$rbacsystem

Definition at line 62 of file class.ilAdministrationGUI.php.

Referenced by executeCommand(), and ilAdministrationGUI().

ilAdministrationGUI::$tpl

Definition at line 60 of file class.ilAdministrationGUI.php.

Referenced by ilAdministrationGUI(), and showTree().

ilAdministrationGUI::$tree

The documentation for this class was generated from the following file: