Open Journal Systems  3.3.0
AuthorOpenReviewAttachmentsGridHandler.inc.php
1 <?php
2 
16 import('lib.pkp.classes.controllers.grid.GridRow');
17 import('lib.pkp.controllers.grid.files.fileList.FileListGridHandler');
18 
23  function __construct() {
24  import('lib.pkp.controllers.grid.files.attachment.ReviewerReviewAttachmentGridDataProvider');
25  // Pass in null stageId to be set in initialize from request var.
26  // Show also files that are not viewable by default
27  parent::__construct(
28  new ReviewerReviewAttachmentGridDataProvider(SUBMISSION_FILE_REVIEW_ATTACHMENT, false),
29  null
30  );
31 
32  $this->addRoleAssignment(
33  array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_AUTHOR),
34  array('fetchGrid', 'fetchRow')
35  );
36 
37  }
38 }
39 
40 
PKPHandler\addRoleAssignment
addRoleAssignment($roleIds, $operations)
Definition: PKPHandler.inc.php:213
AuthorOpenReviewAttachmentsGridHandler
Handle review attachment grid requests in open reviews (author's perspective)
Definition: AuthorOpenReviewAttachmentsGridHandler.inc.php:19
AuthorOpenReviewAttachmentsGridHandler\__construct
__construct()
Definition: AuthorOpenReviewAttachmentsGridHandler.inc.php:23
FileListGridHandler
Base grid for simple file lists. This grid shows the file type in addition to the file name.
Definition: FileListGridHandler.inc.php:22
ReviewerReviewAttachmentGridDataProvider
Provide the reviewers access to their own review attachments data for grids.
Definition: ReviewerReviewAttachmentGridDataProvider.inc.php:18