__construct() public method

Constructor
public __construct ( $dataProvider, $stageId, $capabilities )
$dataProvider GridDataProvider
$stageId integer One of the WORKFLOW_STAGE_ID_* constants.
$capabilities integer A bit map with zero or more FILE_GRID_* capabilities set.
 /**
  * Constructor
  */
 function __construct()
 {
     import('lib.pkp.controllers.grid.files.SubmissionFilesCategoryGridDataProvider');
     parent::__construct(new SubmissionFilesCategoryGridDataProvider(SUBMISSION_FILE_FINAL), WORKFLOW_STAGE_ID_EDITING, FILE_GRID_ADD | FILE_GRID_DELETE | FILE_GRID_VIEW_NOTES | FILE_GRID_EDIT);
     $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER, ROLE_ID_ASSISTANT), array('fetchGrid', 'fetchCategory', 'fetchRow', 'addFile', 'downloadFile', 'deleteFile', 'updateFinalDraftFiles'));
     // Set the grid title.
     $this->setTitle('submission.finalDraft');
 }
 /**
  * Constructor
  */
 function __construct()
 {
     import('lib.pkp.controllers.grid.files.SubmissionFilesCategoryGridDataProvider');
     parent::__construct(new SubmissionFilesCategoryGridDataProvider(SUBMISSION_FILE_PROOF), WORKFLOW_STAGE_ID_PRODUCTION);
     $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER), array('fetchGrid', 'fetchCategory', 'fetchRow', 'addFile', 'downloadFile', 'deleteFile', 'updateProofFiles'));
     // Set the grid title.
     $this->setTitle('submission.pageProofs');
 }
 /**
  * Constructor
  */
 function __construct()
 {
     import('lib.pkp.controllers.grid.files.review.ReviewCategoryGridDataProvider');
     // Pass in null stageId to be set in initialize from request var.
     parent::__construct(new ReviewCategoryGridDataProvider(SUBMISSION_FILE_REVIEW_FILE), null, FILE_GRID_ADD | FILE_GRID_VIEW_NOTES);
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT), array('fetchGrid', 'fetchCategory', 'fetchRow', 'updateReviewFiles'));
     // Set the grid title.
     $this->setTitle('reviewer.submission.reviewFiles');
 }
 /**
  * Constructor
  */
 function __construct()
 {
     import('lib.pkp.controllers.grid.files.query.QueryNoteFilesCategoryGridDataProvider');
     $request = Application::getRequest();
     $stageId = $request->getUservar('stageId');
     // authorized by data provider.
     parent::__construct(new QueryNoteFilesCategoryGridDataProvider(), $stageId, FILE_GRID_DELETE | FILE_GRID_VIEW_NOTES | FILE_GRID_EDIT);
     $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER, ROLE_ID_ASSISTANT), array('fetchGrid', 'fetchCategory', 'fetchRow', 'addFile', 'downloadFile', 'deleteFile', 'updateQueryNoteFiles'));
     // Set the grid title.
     $this->setTitle('submission.queryNoteFiles');
 }