function archiveSubmission($args)
 {
     $articleId = isset($args[0]) ? (int) $args[0] : 0;
     list($journal, $submission) = SubmissionEditHandler::validate($articleId);
     SectionEditorAction::archiveSubmission($submission);
     Request::redirect(null, null, 'submission', $articleId);
 }
 function archiveSubmission($args)
 {
     $articleId = isset($args[0]) ? (int) $args[0] : 0;
     $this->validate($articleId);
     $submission =& $this->submission;
     SectionEditorAction::archiveSubmission($submission);
     Request::redirect(null, null, 'submission', $articleId);
 }
 /**
  * Notifies an author that a submission was unsuitable.
  * @param $sectionEditorSubmission object
  * @param $send boolean true if an email should be sent
  * @param $request object
  * @return boolean true iff ready for redirect
  */
 function unsuitableSubmission($sectionEditorSubmission, $send, $request)
 {
     $sectionEditorSubmissionDao =& DAORegistry::getDAO('SectionEditorSubmissionDAO');
     $userDao =& DAORegistry::getDAO('UserDAO');
     $journal =& $request->getJournal();
     $user =& $request->getUser();
     $author =& $userDao->getUser($sectionEditorSubmission->getUserId());
     if (!isset($author)) {
         return true;
     }
     import('classes.mail.ArticleMailTemplate');
     $email = new ArticleMailTemplate($sectionEditorSubmission, 'SUBMISSION_UNSUITABLE');
     if (!$email->isEnabled() || $send && !$email->hasErrors()) {
         HookRegistry::call('SectionEditorAction::unsuitableSubmission', array(&$sectionEditorSubmission, &$author, &$email));
         if ($email->isEnabled()) {
             $email->send($request);
         }
         SectionEditorAction::archiveSubmission($sectionEditorSubmission, $request);
         return true;
     } else {
         if (!$request->getUserVar('continued')) {
             $paramArray = array('editorialContactSignature' => $user->getContactSignature(), 'authorName' => $author->getFullName());
             $email->assignParams($paramArray);
             $email->addRecipient($author->getEmail(), $author->getFullName());
         }
         $email->displayEditForm($request->url(null, null, 'unsuitableSubmission'), array('articleId' => $sectionEditorSubmission->getId()));
         return false;
     }
 }
 /**
  * Archive a submission.
  * @param $args array
  * @param $request PKPRequest
  */
 function archiveSubmission($args, $request)
 {
     $articleId = (int) array_shift($args);
     $this->validate($articleId);
     SectionEditorAction::archiveSubmission($this->submission, $request);
     $request->redirect(null, null, 'submission', $articleId);
 }