コード例 #1
0
 /**
  * View editor decision comments.
  * @param $article object
  */
 function viewEditorDecisionComments($article)
 {
     if (HookRegistry::call('SectionEditorAction::viewEditorDecisionComments', array(&$article))) {
         return;
     }
     import('classes.submission.form.comment.EditorDecisionCommentForm');
     $commentForm = new EditorDecisionCommentForm($article, Validation::isEditor() ? ROLE_ID_EDITOR : ROLE_ID_SECTION_EDITOR);
     $commentForm->initData();
     $commentForm->display();
 }
コード例 #2
0
 /**
  * View editor decision comments.
  * @param $article object
  */
 function viewEditorDecisionComments($article)
 {
     if (!HookRegistry::call('AuthorAction::viewEditorDecisionComments', array(&$article))) {
         import('classes.submission.form.comment.EditorDecisionCommentForm');
         $commentForm = new EditorDecisionCommentForm($article, ROLE_ID_AUTHOR);
         $commentForm->initData();
         $commentForm->display();
     }
 }