/** * Post layout comment. * @param $args array * @param $request PKPRequest */ function postLayoutComment($args, $request) { $articleId = (int) $request->getUserVar('articleId'); $this->validate($request, $articleId); $this->setupTemplate(true); // If the user pressed the "Save and email" button, then email the comment. $emailComment = $request->getUserVar('saveAndEmail') != null ? true : false; if (LayoutEditorAction::postLayoutComment($this->submission, $emailComment, $request)) { LayoutEditorAction::viewLayoutComments($this->submission); } }
/** * Post layout comment. */ function postLayoutComment() { LayoutEditorHandler::validate(); LayoutEditorHandler::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, $submission) = SubmissionLayoutHandler::validate($articleId); if (LayoutEditorAction::postLayoutComment($submission, $emailComment)) { LayoutEditorAction::viewLayoutComments($submission); } }
/** * 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; $submissionLayoutHandler = new SubmissionLayoutHandler(); $submissionLayoutHandler->validate($articleId); $submission =& $submissionLayoutHandler->submission; if (LayoutEditorAction::postLayoutComment($submission, $emailComment)) { LayoutEditorAction::viewLayoutComments($submission); } }