예제 #1
0
 /**
  * Post peer review comments.
  */
 function postDirectorDecisionComment($args, $request)
 {
     $paperId = (int) $request->getUserVar('paperId');
     $this->validate($request);
     $this->setupTemplate($request, true);
     // If the user pressed the "Save and email" button, then email the comment.
     $emailComment = $request->getUserVar('saveAndEmail') != null ? true : false;
     $submissionEditHandler = new SubmissionEditHandler();
     $submissionEditHandler->validate($request, $paperId);
     $paperDao = DAORegistry::getDAO('PaperDAO');
     $submission =& $paperDao->getPaper($paperId);
     if (TrackDirectorAction::postDirectorDecisionComment($request, $submission, $emailComment)) {
         TrackDirectorAction::viewDirectorDecisionComments($submission);
     }
 }