Ejemplo n.º 1
0
 function executeCommand()
 {
     global $ilUser, $ilCtrl, $ilTabs, $lng;
     $next_class = $this->ctrl->getNextClass($this);
     $cmd = $this->ctrl->getCmd();
     $this->prepareOutput();
     //echo "-".$next_class."-".$cmd."-"; exit;
     switch ($next_class) {
         case "ilfilesystemgui":
             $this->checkPermission("write");
             if ($_GET["fsmode"] == "peer") {
                 $ilCtrl->saveParameter($this, array("fu"));
                 // see self::downloadPeerReview()
                 $parts = explode("__", $_GET["fu"]);
                 $giver_id = $parts[0];
                 $peer_id = $parts[1];
                 if ($giver_id == $ilUser->getId() || $peer_id == $ilUser->getId()) {
                     $this->checkPermission("read");
                 } else {
                     $this->checkPermission("write");
                 }
                 $valid = false;
                 $peer_items = $this->ass->getPeerReviewsByPeerId($peer_id, true);
                 if (sizeof($peer_items)) {
                     foreach ($peer_items as $item) {
                         if ($item["giver_id"] == $giver_id) {
                             $valid = true;
                         }
                     }
                 }
                 if (!$valid) {
                     $ilCtrl->redirect($this, "editPeerReview");
                 }
                 $ilTabs->clearTargets();
                 $ilTabs->setBackTarget($lng->txt("back"), $ilCtrl->getLinkTarget($this, "editPeerReview"));
                 include_once "./Modules/Exercise/classes/class.ilFSStorageExercise.php";
                 $fstorage = new ilFSStorageExercise($this->object->getId(), $this->ass->getId());
                 $fstorage->create();
                 include_once "./Services/FileSystem/classes/class.ilFileSystemGUI.php";
                 $fs_gui = new ilFileSystemGUI($fstorage->getPeerReviewUploadPath($peer_id, $giver_id));
                 $fs_gui->setTableId("excfbpeer");
                 $fs_gui->setAllowDirectories(false);
                 $fs_gui->setTitle($this->ass->getTitle() . ": " . $lng->txt("exc_peer_review") . " - " . $lng->txt("exc_peer_review_give"));
                 $ret = $this->ctrl->forwardCommand($fs_gui);
             } else {
                 if ($_GET["fsmode"] == "feedback" || $_GET["fsmode"] == "feedbackpart") {
                     $ilCtrl->saveParameter($this, array("member_id"));
                     //$this->setAssignmentHeader();
                     //$ilTabs->activateTab("ass_files");
                     $ilTabs->clearTargets();
                     if ($_GET["fsmode"] != "feedbackpart") {
                         $ilTabs->setBackTarget($lng->txt("back"), $ilCtrl->getLinkTarget($this, "members"));
                     } else {
                         $ilTabs->setBackTarget($lng->txt("back"), $ilCtrl->getLinkTarget($this, "showParticipant"));
                     }
                     ilUtil::sendInfo($lng->txt("exc_fb_tutor_info"));
                     include_once "./Modules/Exercise/classes/class.ilFSStorageExercise.php";
                     $fstorage = new ilFSStorageExercise($this->object->getId(), (int) $_GET["ass_id"]);
                     $fstorage->create();
                     include_once "./Services/User/classes/class.ilUserUtil.php";
                     $noti_rec_ids = array();
                     if ($this->ass->getType() == ilExAssignment::TYPE_UPLOAD_TEAM) {
                         $team_id = $this->ass->getTeamId((int) $_GET["member_id"]);
                         $feedback_id = "t" . $team_id;
                         $fs_title = array();
                         foreach ($this->ass->getTeamMembers($team_id) as $team_user_id) {
                             $fs_title[] = ilUserUtil::getNamePresentation($team_user_id, false, false, "", true);
                             $noti_rec_ids[] = $team_user_id;
                         }
                         $fs_title = implode(" / ", $fs_title);
                     } else {
                         $feedback_id = $noti_rec_ids = (int) $_GET["member_id"];
                         $fs_title = ilUserUtil::getNamePresentation((int) $_GET["member_id"], false, false, "", true);
                     }
                     include_once "./Services/FileSystem/classes/class.ilFileSystemGUI.php";
                     $fs_gui = new ilFileSystemGUI($fstorage->getFeedbackPath($feedback_id));
                     $fs_gui->setTableId("excfbfil" . (int) $_GET["ass_id"] . "_" . $feedback_id);
                     $fs_gui->setAllowDirectories(false);
                     $fs_gui->setTitle($lng->txt("exc_fb_files") . " - " . ilExAssignment::lookupTitle((int) $_GET["ass_id"]) . " - " . $fs_title);
                     $pcommand = $fs_gui->getLastPerformedCommand();
                     if (is_array($pcommand) && $pcommand["cmd"] == "create_file") {
                         $this->object->sendFeedbackFileNotification($pcommand["name"], $noti_rec_ids, (int) $_GET["ass_id"]);
                     }
                     $ret = $this->ctrl->forwardCommand($fs_gui);
                 } else {
                     $this->setAssignmentHeader();
                     $ilTabs->activateTab("ass_files");
                     include_once "./Modules/Exercise/classes/class.ilFSStorageExercise.php";
                     $fstorage = new ilFSStorageExercise($this->object->getId(), (int) $_GET["ass_id"]);
                     $fstorage->create();
                     include_once "./Services/FileSystem/classes/class.ilFileSystemGUI.php";
                     $fs_gui = new ilFileSystemGUI($fstorage->getPath());
                     $fs_gui->setTitle($lng->txt("exc_instruction_files"));
                     $fs_gui->setTableId("excassfil" . $_GET["ass_id"]);
                     $fs_gui->setAllowDirectories(false);
                     $ret = $this->ctrl->forwardCommand($fs_gui);
                 }
             }
             break;
         case "ilinfoscreengui":
             $ilTabs->activateTab("info");
             $this->infoScreen();
             // forwards command
             break;
         case 'ilpermissiongui':
             $ilTabs->activateTab("permissions");
             include_once "Services/AccessControl/classes/class.ilPermissionGUI.php";
             $perm_gui =& new ilPermissionGUI($this);
             $ret =& $this->ctrl->forwardCommand($perm_gui);
             break;
         case "illearningprogressgui":
             $ilTabs->activateTab("learning_progress");
             include_once './Services/Tracking/classes/class.ilLearningProgressGUI.php';
             $new_gui =& new ilLearningProgressGUI(ilLearningProgressGUI::LP_CONTEXT_REPOSITORY, $this->object->getRefId(), $_GET['user_id'] ? $_GET['user_id'] : $ilUser->getId());
             $this->ctrl->forwardCommand($new_gui);
             $this->tabs_gui->setTabActive('learning_progress');
             break;
         case 'ilrepositorysearchgui':
             $ilTabs->activateTab("grades");
             include_once './Services/Search/classes/class.ilRepositorySearchGUI.php';
             $rep_search = new ilRepositorySearchGUI();
             if (!$_REQUEST["ctx"]) {
                 $rep_search->setTitle($this->lng->txt("exc_add_participant"));
                 $rep_search->setCallback($this, 'addMembersObject');
                 // Set tabs
                 $this->tabs_gui->setTabActive('members');
                 $this->ctrl->setReturn($this, 'members');
                 #$this->__setSubTabs('members');
                 #$this->tabs_gui->setSubTabActive('members');
             } else {
                 $this->ctrl->saveParameterByClass('ilRepositorySearchGUI', 'ctx', 1);
                 $rep_search->setTitle($this->lng->txt("exc_team_member_add"));
                 $rep_search->setCallback($this, 'addTeamMemberActionObject');
                 // Set tabs
                 $this->initTeamSubmission("submissionScreenTeam");
                 $this->ctrl->setReturn($this, 'submissionScreenTeam');
             }
             $ret =& $this->ctrl->forwardCommand($rep_search);
             break;
         case 'ilobjectcopygui':
             $ilCtrl->saveParameter($this, 'new_type');
             $ilCtrl->setReturnByClass(get_class($this), 'create');
             include_once './Services/Object/classes/class.ilObjectCopyGUI.php';
             $cp = new ilObjectCopyGUI($this);
             $cp->setType('exc');
             $this->ctrl->forwardCommand($cp);
             break;
         case "ilexportgui":
             $ilTabs->activateTab("export");
             include_once "./Services/Export/classes/class.ilExportGUI.php";
             $exp_gui = new ilExportGUI($this);
             $exp_gui->addFormat("xml");
             $ret = $this->ctrl->forwardCommand($exp_gui);
             //				$this->tpl->show();
             break;
         case 'ilshoppurchasegui':
             include_once './Services/Payment/classes/class.ilShopPurchaseGUI.php';
             $sp = new ilShopPurchaseGUI($_GET['ref_id']);
             $this->ctrl->forwardCommand($sp);
             break;
         case "ilcommonactiondispatchergui":
             include_once "Services/Object/classes/class.ilCommonActionDispatcherGUI.php";
             $gui = ilCommonActionDispatcherGUI::getInstanceFromAjaxCall();
             $this->ctrl->forwardCommand($gui);
             break;
         case "ilcertificategui":
             $this->setSettingsSubTabs();
             $this->tabs_gui->activateTab("settings");
             $this->tabs_gui->activateSubTab("certificate");
             include_once "./Services/Certificate/classes/class.ilCertificateGUI.php";
             include_once "./Modules/Exercise/classes/class.ilExerciseCertificateAdapter.php";
             $output_gui = new ilCertificateGUI(new ilExerciseCertificateAdapter($this->object));
             $this->ctrl->forwardCommand($output_gui);
             break;
         case "ilratinggui":
             $this->ass->updatePeerReviewTimestamp((int) $_REQUEST["peer_id"]);
             include_once "./Services/Rating/classes/class.ilRatingGUI.php";
             $rating_gui = new ilRatingGUI();
             $rating_gui->setObject($this->ass->getId(), "ass", (int) $_REQUEST["peer_id"], "peer");
             $this->ctrl->forwardCommand($rating_gui);
             $ilCtrl->redirect($this, "editPeerReview");
             break;
         default:
             $this->ctrl->setParameter($this, "fsmode", "");
             // #15115
             if (!$cmd) {
                 $cmd = "infoScreen";
             }
             $cmd .= "Object";
             $this->{$cmd}();
             break;
     }
     $this->addHeaderAction();
     return true;
 }
Ejemplo n.º 2
0
 /**
  * execute command
  */
 function executeCommand()
 {
     global $ilUser, $ilLocator, $ilTabs;
     $next_class = $this->ctrl->getNextClass($this);
     $cmd = $this->ctrl->getCmd();
     if (strtolower($_GET["baseClass"]) == "iladministrationgui" || $this->getCreationMode() == true) {
         $this->prepareOutput();
     } else {
         if (!in_array($cmd, array("", "framset")) || $next_class != "") {
             $this->getTemplate();
             $this->setLocator();
             $this->setTabs();
         }
     }
     if (!$this->getCreationMode()) {
         if (IS_PAYMENT_ENABLED) {
             include_once 'Services/Payment/classes/class.ilPaymentObject.php';
             if (ilPaymentObject::_requiresPurchaseToAccess($_GET['ref_id'], $type = isset($_GET['purchasetype']) ? $_GET['purchasetype'] : NULL)) {
                 $this->tpl->getStandardTemplate();
                 include_once 'Services/Payment/classes/class.ilShopPurchaseGUI.php';
                 $pp = new ilShopPurchaseGUI((int) $_GET['ref_id']);
                 $ret = $this->ctrl->forwardCommand($pp);
                 return true;
             }
         }
     }
     switch ($next_class) {
         case 'ilmdeditorgui':
             $this->checkPermission("write");
             $ilTabs->activateTab('id_meta_data');
             include_once 'Services/MetaData/classes/class.ilMDEditorGUI.php';
             $md_gui =& new ilMDEditorGUI($this->object->getId(), 0, $this->object->getType());
             $md_gui->addObserver($this->object, 'MDUpdateListener', 'General');
             $this->ctrl->forwardCommand($md_gui);
             break;
         case "ilfilesystemgui":
             $this->checkPermission("write");
             $ilTabs->activateTab('id_list_files');
             $fs_gui = new ilFileSystemGUI($this->object->getDataDirectory());
             $fs_gui->activateLabels(true, $this->lng->txt("cont_purpose"));
             $fs_gui->setUseUploadDirectory(true);
             $fs_gui->setTableId("htlmfs" . $this->object->getId());
             if ($this->object->getStartFile() != "") {
                 $fs_gui->labelFile($this->object->getStartFile(), $this->lng->txt("cont_startfile"));
             }
             $fs_gui->addCommand($this, "setStartFile", $this->lng->txt("cont_set_start_file"));
             $this->ctrl->forwardCommand($fs_gui);
             // try to set start file automatically
             require_once "./Modules/HTMLLearningModule/classes/class.ilObjFileBasedLMAccess.php";
             if (!ilObjFileBasedLMAccess::_determineStartUrl($this->object->getId())) {
                 $do_update = false;
                 $pcommand = $fs_gui->getLastPerformedCommand();
                 if (is_array($pcommand)) {
                     $valid = array("index.htm", "index.html", "start.htm", "start.html");
                     if ($pcommand["cmd"] == "create_file") {
                         $file = strtolower(basename($pcommand["name"]));
                         if (in_array($file, $valid)) {
                             $this->object->setStartFile($pcommand["name"]);
                             $do_update = $pcommand["name"];
                         }
                     } else {
                         if ($pcommand["cmd"] == "unzip_file") {
                             $zip_file = strtolower(basename($pcommand["name"]));
                             $suffix = strrpos($zip_file, ".");
                             if ($suffix) {
                                 $zip_file = substr($zip_file, 0, $suffix);
                             }
                             foreach ($pcommand["added"] as $file) {
                                 $chk_file = null;
                                 if (stristr($file, ".htm")) {
                                     $chk_file = strtolower(basename($file));
                                     $suffix = strrpos($chk_file, ".");
                                     if ($suffix) {
                                         $chk_file = substr($chk_file, 0, $suffix);
                                     }
                                 }
                                 if (in_array(basename($file), $valid) || $zip_file && $chk_file && $chk_file == $zip_file) {
                                     $this->object->setStartFile($file);
                                     $do_update = $file;
                                     break;
                                 }
                             }
                         }
                     }
                 }
                 if ($do_update) {
                     ilUtil::sendInfo(sprintf($this->lng->txt("cont_start_file_set_to"), $do_update), true);
                     $this->object->update();
                     $this->ctrl->redirectByClass("ilfilesystemgui", "listFiles");
                 }
             }
             break;
         case "ilinfoscreengui":
             $ret =& $this->outputInfoScreen();
             break;
         case "illearningprogressgui":
             $ilTabs->activateTab('id_learning_progress');
             include_once './Services/Tracking/classes/class.ilLearningProgressGUI.php';
             $new_gui =& new ilLearningProgressGUI(ilLearningProgressGUI::LP_CONTEXT_REPOSITORY, $this->object->getRefId(), $_GET['user_id'] ? $_GET['user_id'] : $ilUser->getId());
             $this->ctrl->forwardCommand($new_gui);
             break;
         case 'ilpermissiongui':
             $ilTabs->activateTab('id_permissions');
             include_once "Services/AccessControl/classes/class.ilPermissionGUI.php";
             $perm_gui =& new ilPermissionGUI($this);
             $ret =& $this->ctrl->forwardCommand($perm_gui);
             break;
         case 'illicensegui':
             $ilTabs->activateTab('id_license');
             include_once "./Services/License/classes/class.ilLicenseGUI.php";
             $license_gui =& new ilLicenseGUI($this);
             $ret =& $this->ctrl->forwardCommand($license_gui);
             break;
         case "ilexportgui":
             $ilTabs->activateTab("export");
             include_once "./Services/Export/classes/class.ilExportGUI.php";
             $exp_gui = new ilExportGUI($this);
             $exp_gui->addFormat("xml");
             $exp_gui->addFormat("html", "", $this, "exportHTML");
             $ret = $this->ctrl->forwardCommand($exp_gui);
             //				$this->tpl->show();
             break;
         case "ilcommonactiondispatchergui":
             include_once "Services/Object/classes/class.ilCommonActionDispatcherGUI.php";
             $gui = ilCommonActionDispatcherGUI::getInstanceFromAjaxCall();
             $this->ctrl->forwardCommand($gui);
             break;
         default:
             $cmd = $this->ctrl->getCmd("frameset");
             if (strtolower($_GET["baseClass"]) == "iladministrationgui" || $this->getCreationMode() == true) {
                 $cmd .= "Object";
             }
             $ret =& $this->{$cmd}();
             break;
     }
     $this->addHeaderAction();
 }
 function fileSystemHandler($command)
 {
     //0 download
     //1 delete
     //2 unzip
     //3 rename
     if (isset($_GET["member_id"])) {
         global $ilTabs, $lng, $ilCtrl, $tpl;
         include_once "./Customizing/global/plugins/Services/Repository/RepositoryObject/Ephorus/classes/class.ilEphAssignment.php";
         $tpl->setTitle(ilEphAssignment::lookupTitle($_GET["ass_id"]));
         $ilTabs->clearTargets();
         $ilTabs->setBackTarget($lng->txt("back"), $ilCtrl->getLinkTarget($this, "showSubmissions"));
         include_once "./Customizing/global/plugins/Services/Repository/RepositoryObject/Ephorus/classes/class.ilFSStorageEphorus.php";
         $storage = new ilFSStorageEphorus($this->object->getId(), $_GET["ass_id"]);
         include_once "./Services/FileSystem/classes/class.ilFileSystemGUI.php";
         $fs = new ilFileSystemGUI($storage->getFeedbackPath($_GET["member_id"]));
         $fs->setAllowDirectoryCreation(false);
         $fs->executeCommand($command);
     } else {
         global $ilTabs;
         $this->setAssignmentHeader();
         $ilTabs->activateTab("ass_files");
         include_once "./Customizing/global/plugins/Services/Repository/RepositoryObject/Ephorus/classes/class.ilFSStorageEphorus.php";
         $storage = new ilFSStorageEphorus($this->object->getId(), $_GET["ass_id"]);
         include_once "./Services/FileSystem/classes/class.ilFileSystemGUI.php";
         $fs = new ilFileSystemGUI($storage->getPath());
         $fs->setAllowDirectoryCreation(false);
         $fs->executeCommand($command);
     }
 }
 /**
  * execute command
  */
 function &executeCommand()
 {
     global $ilTabs, $lng, $ilAccess, $tpl, $ilCtrl;
     if ($this->ctrl->getRedirectSource() == "ilinternallinkgui") {
         $this->explorer();
         return;
     }
     $next_class = $this->ctrl->getNextClass($this);
     $cmd = $this->ctrl->getCmd();
     $new_type = $_POST["new_type"] ? $_POST["new_type"] : $_GET["new_type"];
     if ($new_type != "" && ($cmd != "confirmRemove" && $cmd != "copyToClipboard" && $cmd != "pasteFromClipboard")) {
         $this->setCreationMode(true);
     }
     if (!$this->getCreationMode()) {
         $tree =& $this->object->getTree();
         if ($_GET["mepitem_id"] == "") {
             $_GET["mepitem_id"] = $tree->getRootId();
         }
     }
     if ($cmd == "create") {
         switch ($_POST["new_type"]) {
             case "mob":
                 $this->ctrl->redirectByClass("ilobjmediaobjectgui", "create");
                 break;
             case "fold":
                 // todo
                 $this->ctrl->redirectByClass("ilobjfoldergui", "create");
                 break;
         }
     }
     switch ($next_class) {
         case 'ilmediapoolpagegui':
             $this->prepareOutput();
             $this->addHeaderAction();
             $this->setMediaPoolPageTabs();
             include_once "./Modules/MediaPool/classes/class.ilMediaPoolPageGUI.php";
             $mep_page_gui = new ilMediaPoolPageGUI($_GET["mepitem_id"], $_GET["old_nr"]);
             if (!$ilAccess->checkAccess("write", "", $this->object->getRefId())) {
                 $mep_page_gui->setEnableEditing(false);
             }
             $ret = $this->ctrl->forwardCommand($mep_page_gui);
             if ($ret != "") {
                 $tpl->setContent($ret);
             }
             $this->tpl->show();
             break;
         case "ilobjmediaobjectgui":
             //$cmd.="Object";
             if ($cmd == "create" || $cmd == "save" || $cmd == "cancel") {
                 $ret_obj = $_GET["mepitem_id"];
                 $ilObjMediaObjectGUI =& new ilObjMediaObjectGUI("", 0, false, false);
                 $ilObjMediaObjectGUI->setWidthPreset($this->object->getDefaultWidth());
                 $ilObjMediaObjectGUI->setHeightPreset($this->object->getDefaultHeight());
             } else {
                 $ret_obj = $tree->getParentId($_GET["mepitem_id"]);
                 $ilObjMediaObjectGUI =& new ilObjMediaObjectGUI("", ilMediaPoolItem::lookupForeignId($_GET["mepitem_id"]), false, false);
                 $this->ctrl->setParameter($this, "mepitem_id", $this->getParentFolderId());
                 $ilTabs->setBackTarget($lng->txt("back"), $this->ctrl->getLinkTarget($this, $_GET["mep_mode"] ? $_GET["mep_mode"] : "listMedia"));
             }
             if ($this->ctrl->getCmdClass() == "ilinternallinkgui") {
                 $this->ctrl->setReturn($this, "explorer");
             } else {
                 $this->ctrl->setParameter($this, "mepitem_id", $ret_obj);
                 $this->ctrl->setReturn($this, $_GET["mep_mode"] ? $_GET["mep_mode"] : "listMedia");
                 $this->ctrl->setParameter($this, "mepitem_id", $_GET["mepitem_id"]);
             }
             $this->getTemplate();
             $ilObjMediaObjectGUI->setTabs();
             $this->setLocator();
             //$ret =& $ilObjMediaObjectGUI->executeCommand();
             $ret = $this->ctrl->forwardCommand($ilObjMediaObjectGUI);
             if ($cmd == "save" && $ret != false) {
                 $mep_item = new ilMediaPoolItem();
                 $mep_item->setTitle($ret->getTitle());
                 $mep_item->setType("mob");
                 $mep_item->setForeignId($ret->getId());
                 $mep_item->create();
                 $parent = $_GET["mepitem_id"] == "" ? $tree->getRootId() : $_GET["mepitem_id"];
                 $tree->insertNode($mep_item->getId(), $parent);
                 ilUtil::redirect("ilias.php?baseClass=ilMediaPoolPresentationGUI&cmd=listMedia&ref_id=" . $_GET["ref_id"] . "&mepitem_id=" . $_GET["mepitem_id"]);
             } else {
                 $this->tpl->show();
             }
             break;
         case "ilobjfoldergui":
             // todo
             $this->addHeaderAction();
             $folder_gui = new ilObjFolderGUI("", 0, false, false);
             $this->ctrl->setReturn($this, "listMedia");
             $cmd .= "Object";
             switch ($cmd) {
                 case "createObject":
                     $this->prepareOutput();
                     $folder_gui =& new ilObjFolderGUI("", 0, false, false);
                     $folder_gui->setFormAction("save", $this->ctrl->getFormActionByClass("ilobjfoldergui"));
                     $folder_gui->createObject();
                     $this->tpl->show();
                     break;
                 case "saveObject":
                     //$folder_gui->setReturnLocation("save", $this->ctrl->getLinkTarget($this, "listMedia"));
                     $parent = $_GET["mepitem_id"] == "" ? $tree->getRootId() : $_GET["mepitem_id"];
                     $folder_gui->setFolderTree($tree);
                     $folder_gui->saveObject($parent);
                     //$this->ctrl->redirect($this, "listMedia");
                     break;
                 case "editObject":
                     $this->prepareOutput();
                     $folder_gui =& new ilObjFolderGUI("", ilMediaPoolItem::lookupForeignId($_GET["mepitem_id"]), false, false);
                     $this->ctrl->setParameter($this, "foldereditmode", "1");
                     $folder_gui->setFormAction("update", $this->ctrl->getFormActionByClass("ilobjfoldergui"));
                     $folder_gui->editObject();
                     $this->tpl->show();
                     break;
                 case "updateObject":
                     $folder_gui =& new ilObjFolderGUI("", ilMediaPoolItem::lookupForeignId($_GET["mepitem_id"]), false, false);
                     $this->ctrl->setParameter($this, "mepitem_id", $this->getParentFolderId());
                     $this->ctrl->setReturn($this, "listMedia");
                     $folder_gui->updateObject(true);
                     // this returns to parent
                     break;
                 case "cancelObject":
                     if ($_GET["foldereditmode"]) {
                         $this->ctrl->setParameter($this, "mepitem_id", $this->getParentFolderId());
                     }
                     $this->ctrl->redirect($this, "listMedia");
                     break;
             }
             break;
         case "ileditclipboardgui":
             $this->prepareOutput();
             $this->addHeaderAction();
             $this->ctrl->setReturn($this, $_GET["mep_mode"] ? $_GET["mep_mode"] : "listMedia");
             $clip_gui = new ilEditClipboardGUI();
             $clip_gui->setMultipleSelections(true);
             $clip_gui->setInsertButtonTitle($lng->txt("mep_copy_to_mep"));
             $ilTabs->setTabActive("clipboard");
             //$ret =& $clip_gui->executeCommand();
             $ret =& $this->ctrl->forwardCommand($clip_gui);
             $this->tpl->show();
             break;
         case 'ilinfoscreengui':
             $this->prepareOutput();
             $this->addHeaderAction();
             $this->infoScreen();
             $this->tpl->show();
             break;
         case 'ilpermissiongui':
             $this->prepareOutput();
             $this->addHeaderAction();
             include_once "Services/AccessControl/classes/class.ilPermissionGUI.php";
             $perm_gui =& new ilPermissionGUI($this);
             $ret =& $this->ctrl->forwardCommand($perm_gui);
             $this->tpl->show();
             break;
         case "ilexportgui":
             $this->prepareOutput();
             $this->addHeaderAction();
             include_once "./Services/Export/classes/class.ilExportGUI.php";
             $exp_gui = new ilExportGUI($this);
             $exp_gui->addFormat("xml");
             $ret = $this->ctrl->forwardCommand($exp_gui);
             $this->tpl->show();
             break;
         case "ilfilesystemgui":
             $this->prepareOutput();
             $this->addHeaderAction();
             $ilTabs->clearTargets();
             $ilTabs->setBackTarget($lng->txt("back"), $ilCtrl->getLinkTarget($this, "listMedia"));
             $mset = new ilSetting("mobs");
             if (trim($mset->get("upload_dir")) != "") {
                 include_once "./Services/FileSystem/classes/class.ilFileSystemGUI.php";
                 $fs_gui = new ilFileSystemGUI($mset->get("upload_dir"));
                 $fs_gui->setPostDirPath(true);
                 $fs_gui->setTableId("mepud" . $this->object->getId());
                 $fs_gui->setAllowFileCreation(false);
                 $fs_gui->setAllowDirectoryCreation(false);
                 $fs_gui->clearCommands();
                 $fs_gui->addCommand($this, "selectUploadDirFiles", $this->lng->txt("mep_sel_upload_dir_files"), false, true);
                 //$fs_gui->addCommand($this, "assignFullscreenObject", $this->lng->txt("cont_assign_full"));
                 $ret =& $this->ctrl->forwardCommand($fs_gui);
             }
             $this->tpl->show();
             break;
         case "ilcommonactiondispatchergui":
             include_once "Services/Object/classes/class.ilCommonActionDispatcherGUI.php";
             $gui = ilCommonActionDispatcherGUI::getInstanceFromAjaxCall();
             $this->ctrl->forwardCommand($gui);
             break;
         default:
             $this->prepareOutput();
             $this->addHeaderAction();
             $cmd = $this->ctrl->getCmd("frameset");
             $this->{$cmd}();
             if (!$this->getCreationMode()) {
                 $this->tpl->show();
             }
             break;
     }
 }