function removeFromSystemObject() { global $rbacsystem; include_once "./Services/Repository/classes/class.ilRepUtilGUI.php"; $ru = new ilRepUtilGUI($this); $ru->removeObjectsFromSystem($_POST["id"], true); $this->ctrl->redirect($this, "view"); }
/** * Display deletion confirmation screen. * Only for referenced objects. For user,role & rolt overwrite this function in the appropriate * Object folders classes (ilObjUserFolderGUI,ilObjRoleFolderGUI) * * @access public */ public function deleteObject($a_error = false) { global $ilCtrl; if ($_GET["item_ref_id"] != "") { $_POST["id"] = array($_GET["item_ref_id"]); } if (is_array($_POST["id"])) { foreach ($_POST["id"] as $idx => $id) { $_POST["id"][$idx] = (int) $id; } } // SAVE POST VALUES (get rid of this ilSession::set("saved_post", $_POST["id"]); include_once "./Services/Repository/classes/class.ilRepUtilGUI.php"; $ru = new ilRepUtilGUI($this); if (!$ru->showDeleteConfirmation($_POST["id"], $a_error)) { $ilCtrl->returnToParent($this); } }
/** * Deletes this file object. */ function confirmDeleteFile() { // has the user the rights to delete the file? if (!$this->checkPermissionBool("write")) { $this->ilErr->raiseError($this->lng->txt("permission_denied"), $this->ilErr->MESSAGE); } // delete this file object include_once "./Services/Repository/classes/class.ilRepUtilGUI.php"; $ru = new ilRepUtilGUI($this); $ru->deleteObjects($this->parent_id, array($this->ref_id)); // redirect to parent object $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $this->parent_id); $this->ctrl->redirectByClass("ilrepositorygui"); }
/** * confirmation screen remove from system */ public function confirmRemoveFromSystemObject() { global $lng; include_once "./Services/Repository/classes/class.ilRepUtilGUI.php"; if (!isset($_POST["trash_id"])) { ilUtil::sendFailure($lng->txt("no_checkbox"), true); $this->ctrl->redirect($this, "trash"); } $ru = new ilRepUtilGUI($this); $ru->confirmRemoveFromSystemObject($_POST["trash_id"]); }
/** * Show trash content of object * * @access public */ public function trashObject() { global $tpl; include_once "./Services/Repository/classes/class.ilRepUtilGUI.php"; $ru = new ilRepUtilGUI($this); $ru->showTrashTable($_GET["ref_id"]); }