/** * confirmed deletion of object -> objects are moved to trash or deleted * immediately, if trash is disabled */ public function confirmedDeleteObject() { global $ilSetting, $lng; if (isset($_POST["mref_id"])) { $_SESSION["saved_post"] = array_unique(array_merge($_SESSION["saved_post"], $_POST["mref_id"])); } include_once "./Services/Repository/classes/class.ilRepUtilGUI.php"; $ru = new ilRepUtilGUI($this); $ru->deleteObjects($_GET["ref_id"], ilSession::get("saved_post")); ilSession::clear("saved_post"); $this->ctrl->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"); }