/**
  * Post layout comment.
  */
 function postLayoutComment()
 {
     $this->validate();
     $this->setupTemplate(true);
     $articleId = Request::getUserVar('articleId');
     // If the user pressed the "Save and email" button, then email the comment.
     $emailComment = Request::getUserVar('saveAndEmail') != null ? true : false;
     $trackSubmissionHandler = new TrackSubmissionHandler();
     $trackSubmissionHandler->validate($articleId);
     $authorSubmission =& $trackSubmissionHandler->submission;
     if (AuthorAction::postLayoutComment($authorSubmission, $emailComment)) {
         AuthorAction::viewLayoutComments($authorSubmission);
     }
 }
 /**
  * Post layout comment.
  * @param $args array
  * @param $request PKPRequest
  */
 function postLayoutComment($args, $request)
 {
     $articleId = (int) $request->getUserVar('articleId');
     $this->validate($request, $articleId);
     $this->setupTemplate($request, true);
     // If the user pressed the "Save and email" button, then email the comment.
     $emailComment = $request->getUserVar('saveAndEmail') != null ? true : false;
     if (AuthorAction::postLayoutComment($this->submission, $emailComment, $request)) {
         AuthorAction::viewLayoutComments($this->submission);
     }
 }
Ejemplo n.º 3
0
 /**
  * Post layout comment.
  */
 function postLayoutComment()
 {
     AuthorHandler::validate();
     AuthorHandler::setupTemplate(true);
     $articleId = Request::getUserVar('articleId');
     // If the user pressed the "Save and email" button, then email the comment.
     $emailComment = Request::getUserVar('saveAndEmail') != null ? true : false;
     list($journal, $authorSubmission) = TrackSubmissionHandler::validate($articleId);
     if (AuthorAction::postLayoutComment($authorSubmission, $emailComment)) {
         AuthorAction::viewLayoutComments($authorSubmission);
     }
 }