/** * User downloads (own) submitted files * * @param * @return */ function download() { global $ilUser, $ilCtrl; $this->checkPermission("read"); if (count($_REQUEST["delivered"])) { if (!is_array($_REQUEST["delivered"])) { $_REQUEST["delivered"] = array($_REQUEST["delivered"]); } ilEphAssignment::downloadSelectedFiles($this->object->getId(), (int) $_GET["ass_id"], $ilUser->getId(), $_REQUEST["delivered"]); exit; } else { ilUtil::sendFailure($this->lng->txt("please_select_a_delivered_file_to_download"), true); $ilCtrl->redirect($this, "submissionScreen"); } }