Open Journal Systems  3.3.0
AuthorReviewAttachmentsGridHandler.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.review.ReviewGridDataProvider');
25  // Pass in null stageId to be set in initialize from request var.
26  parent::__construct(
27  new ReviewGridDataProvider(SUBMISSION_FILE_REVIEW_ATTACHMENT, true),
28  null
29  );
30 
31  $this->addRoleAssignment(
32  array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_AUTHOR),
33  array('fetchGrid', 'fetchRow')
34  );
35 
36  // Set the grid title.
37  $this->setTitle('grid.reviewAttachments.title');
38  }
39 }
40 
41 
PKPHandler\addRoleAssignment
addRoleAssignment($roleIds, $operations)
Definition: PKPHandler.inc.php:213
AuthorReviewAttachmentsGridHandler
Handle review attachment grid requests (author's perspective)
Definition: AuthorReviewAttachmentsGridHandler.inc.php:19
ReviewGridDataProvider
Provide access to review file data for grids.
Definition: ReviewGridDataProvider.inc.php:17
FileListGridHandler
Base grid for simple file lists. This grid shows the file type in addition to the file name.
Definition: FileListGridHandler.inc.php:22
AuthorReviewAttachmentsGridHandler\__construct
__construct()
Definition: AuthorReviewAttachmentsGridHandler.inc.php:23
GridHandler\setTitle
setTitle($title)
Definition: GridHandler.inc.php:215