Beispiel #1
0
 /**
  * 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();
     }
 }