/** * 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 ManageCopyeditFilesGridHandler() { import('lib.pkp.controllers.grid.files.SubmissionFilesCategoryGridDataProvider'); parent::SelectableSubmissionFileListCategoryGridHandler(new SubmissionFilesCategoryGridDataProvider(SUBMISSION_FILE_COPYEDIT), 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', 'updateCopyeditFiles')); // Set the grid title. $this->setTitle('submission.copyedited'); }
/** * 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'); }
/** * Get the grid request parameters. * @return array */ function getRequestArgs() { $representation = $this->getAuthorizedContextObject(ASSOC_TYPE_REPRESENTATION); return array_merge(parent::getRequestArgs(), array('representationId' => $representation->getId())); }
/** * @copydoc CategoryGridHandler::getRequestArgs() */ function getRequestArgs() { $stageId = $this->getAuthorizedContextObject(ASSOC_TYPE_WORKFLOW_STAGE); return array_merge(array('stageId' => $stageId), parent::getRequestArgs()); }