/** * Download a file. * @param $args array ($articleId, $fileId, [$revision]) */ function downloadFile($args) { $reviewId = isset($args[0]) ? $args[0] : 0; $articleId = isset($args[1]) ? $args[1] : 0; $fileId = isset($args[2]) ? $args[2] : 0; $revision = isset($args[3]) ? $args[3] : null; $this->validate($reviewId); $reviewerSubmission =& $this->submission; if (!ReviewerAction::downloadReviewerFile($reviewId, $reviewerSubmission, $fileId, $revision)) { Request::redirect(null, null, 'submission', $reviewId); } }
/** * Download a file. * @param $args array ($articleId, $fileId, [$revision]) */ function downloadFile($args, $request) { $reviewId = (int) array_shift($args); $articleId = (int) array_shift($args); $fileId = (int) array_shift($args); $revision = (int) array_shift($args); if (!$revision) { $revision = null; } $this->validate($request, $reviewId); $reviewerSubmission =& $this->submission; if (!ReviewerAction::downloadReviewerFile($reviewId, $reviewerSubmission, $fileId, $revision)) { $request->redirect(null, null, 'submission', $reviewId); } }
/** * Download a file. * @param $args array ($articleId, $fileId, [$revision]) */ function downloadFile($args) { $reviewId = isset($args[0]) ? $args[0] : 0; $articleId = isset($args[1]) ? $args[1] : 0; $fileId = isset($args[2]) ? $args[2] : 0; $revision = isset($args[3]) ? $args[3] : null; list($journal, $reviewerSubmission) = SubmissionReviewHandler::validate($reviewId); if (!ReviewerAction::downloadReviewerFile($reviewId, $reviewerSubmission, $fileId, $revision)) { Request::redirect(null, null, 'submission', $reviewId); } }