Open Journal Systems  3.3.0
EditorReviewAttachmentsGridHandler.inc.php
1 <?php
2 
16 import('lib.pkp.controllers.grid.files.fileList.FileListGridHandler');
17 
22  function __construct() {
23  import('lib.pkp.controllers.grid.files.attachment.ReviewerReviewAttachmentGridDataProvider');
24  // Pass in null stageId to be set in initialize from request var.
25  parent::__construct(
26  new ReviewerReviewAttachmentGridDataProvider(SUBMISSION_FILE_REVIEW_ATTACHMENT),
27  null,
28  FILE_GRID_DELETE|FILE_GRID_ADD|FILE_GRID_VIEW_NOTES|FILE_GRID_EDIT
29  );
30 
31  $this->addRoleAssignment(
32  array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT),
33  array(
34  'fetchGrid', 'fetchRow'
35  )
36  );
37  }
38 }
39 
40 
PKPHandler\addRoleAssignment
addRoleAssignment($roleIds, $operations)
Definition: PKPHandler.inc.php:213
EditorReviewAttachmentsGridHandler\__construct
__construct()
Definition: EditorReviewAttachmentsGridHandler.inc.php:22
EditorReviewAttachmentsGridHandler
Editor's view of the Review Attachments Grid.
Definition: EditorReviewAttachmentsGridHandler.inc.php:18
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