/** * View a file (inlines file). * @param $args array ($articleId, $fileId, [$revision]) */ function viewFile($args) { $articleId = isset($args[0]) ? $args[0] : 0; $fileId = isset($args[1]) ? $args[1] : 0; $revision = isset($args[2]) ? $args[2] : null; list($journal, $submission) = SubmissionCopyeditHandler::validate($articleId); if (!CopyeditorAction::viewFile($articleId, $fileId, $revision)) { Request::redirect(null, null, 'submission', $articleId); } }
/** * View a file (inlines file). * @param $args array ($articleId, $fileId, [$revision]) */ function viewFile($args, &$request) { $articleId = (int) array_shift($args); $fileId = (int) array_shift($args); $revision = array_shift($args); // May be null $this->validate($request, $articleId); if (!CopyeditorAction::viewFile($articleId, $fileId, $revision)) { $request->redirect(null, null, 'submission', $articleId); } }
/** * View a file (inlines file). * @param $args array ($articleId, $fileId, [$revision]) */ function viewFile($args) { $articleId = isset($args[0]) ? $args[0] : 0; $fileId = isset($args[1]) ? $args[1] : 0; $revision = isset($args[2]) ? $args[2] : null; $this->validate($articleId); $submission =& $this->submission; if (!CopyeditorAction::viewFile($articleId, $fileId, $revision)) { Request::redirect(null, null, 'submission', $articleId); } }