コード例 #1
0
ファイル: ReviewerAction.inc.php プロジェクト: jalperin/ocs
 /**
  * View reviewer comments.
  * @param $user object Current user
  * @param $paper object
  * @param $reviewId int
  */
 function viewPeerReviewComments(&$user, &$paper, $reviewId)
 {
     if (!HookRegistry::call('ReviewerAction::viewPeerReviewComments', array(&$user, &$paper, &$reviewId))) {
         import("submission.form.comment.PeerReviewCommentForm");
         $commentForm = new PeerReviewCommentForm($paper, $reviewId, ROLE_ID_REVIEWER);
         $commentForm->setUser($user);
         $commentForm->initData();
         $commentForm->setData('reviewId', $reviewId);
         $commentForm->display();
     }
 }
コード例 #2
0
 /**
  * View reviewer comments.
  * @param $article object
  * @param $reviewId int
  */
 function viewPeerReviewComments(&$article, $reviewId)
 {
     if (HookRegistry::call('SectionEditorAction::viewPeerReviewComments', array(&$article, &$reviewId))) {
         return;
     }
     import('classes.submission.form.comment.PeerReviewCommentForm');
     $commentForm = new PeerReviewCommentForm($article, $reviewId, Validation::isEditor() ? ROLE_ID_EDITOR : ROLE_ID_SECTION_EDITOR);
     $commentForm->initData();
     $commentForm->display();
 }
コード例 #3
0
 /**
  * View reviewer comments.
  * @param $paper object
  * @param $reviewId int
  */
 function viewPeerReviewComments(&$paper, $reviewId)
 {
     if (HookRegistry::call('TrackDirectorAction::viewPeerReviewComments', array(&$paper, &$reviewId))) {
         return;
     }
     import('submission.form.comment.PeerReviewCommentForm');
     $commentForm = new PeerReviewCommentForm($paper, $reviewId, Validation::isDirector() ? ROLE_ID_DIRECTOR : ROLE_ID_TRACK_DIRECTOR);
     $commentForm->initData();
     $commentForm->display();
 }