Constructor.
public __construct ( $dataProvider = null ) | ||
$dataProvider | GridDataProvider An optional data provider for the grid. If no data provider is given then the grid assumes that child classes will override default method implementations. |
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_AUTHOR), array('fetchGrid', 'fetchRow', 'addAuthor', 'editAuthor', 'updateAuthor', 'deleteAuthor', 'saveSequence')); $this->addRoleAssignment(ROLE_ID_REVIEWER, array('fetchGrid', 'fetchRow')); $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT), array('addUser')); }
/** * Constructor * @param $dataProvider GridDataProvider * @param $stageId integer One of the WORKFLOW_STAGE_ID_* constants. * @param $capabilities integer A bit map with zero or more * FILE_GRID_* capabilities set. */ function __construct($dataProvider, $stageId, $capabilities = 0) { parent::__construct($dataProvider); if ($stageId) { $this->_stageId = (int) $stageId; } $this->_capabilities = new FilesGridCapabilities($capabilities); }
/** * Constructor */ function __construct() { // Instantiate the citation DAO which will implicitly // define the filter groups for parsers and lookup // database connectors. DAORegistry::getDAO('CitationDAO'); parent::__construct(); }
/** * Constructor */ function __construct() { parent::__construct(); $allOperations = array_merge($this->_getReviewAssignmentOps(), $this->_getReviewRoundOps()); $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR), $allOperations); // Remove operations related to creation and enrollment of users. $assistantOperations = array_flip($allOperations); unset($assistantOperations['createReviewer']); unset($assistantOperations['enrollReviewer']); $assistantOperations = array_flip($assistantOperations); $this->addRoleAssignment(array(ROLE_ID_ASSISTANT), $assistantOperations); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('uploadImage')); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SITE_ADMIN), array('fetchGrid', 'fetchRow', 'viewPlugin')); $this->addRoleAssignment(array(ROLE_ID_SITE_ADMIN), array('installPlugin', 'upgradePlugin')); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchRow', 'addRights', 'editRights', 'updateRights', 'deleteRights')); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT), array('fetchGrid', 'fetchRow', 'addGalley', 'editGalley', 'editGalleyTab', 'updateGalley', 'deleteGalley', 'identifiers', 'updateIdentifiers', 'clearPubId', 'saveSequence')); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchRow', 'addIssue', 'editIssue', 'editIssueData', 'updateIssue', 'uploadFile', 'deleteCoverImage', 'issueToc', 'issueGalleys', 'deleteIssue', 'publishIssue', 'unpublishIssue', 'identifiers', 'updateIdentifiers', 'clearPubId', 'clearIssueObjectsPubIds')); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(ROLE_ID_MANAGER, array('fetchGrid', 'fetchRow', 'addAnnouncementType', 'editAnnouncementType', 'updateAnnouncementType', 'deleteAnnouncementType')); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchRow')); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchCategory', 'fetchRow', 'addUserGroup', 'editUserGroup', 'updateUserGroup', 'removeUserGroup', 'assignStage', 'unassignStage')); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(ROLE_ID_MANAGER, array('saveLanguageSetting', 'setContextPrimaryLocale')); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchRow', 'editUser', 'updateUser', 'updateUserRoles', 'editDisableUser', 'disableUser', 'removeUser', 'addUser', 'editEmail', 'sendEmail', 'mergeUsers')); }
/** * Constructor. */ function __construct($dataProvider = null) { parent::__construct($dataProvider); import('lib.pkp.classes.controllers.grid.NullGridCellProvider'); $this->addColumn(new GridColumn('indent', null, null, null, new NullGridCellProvider(), array('indent' => true, 'width' => 2))); }
/** * Constructor */ function __construct() { parent::__construct(new ApprovedProofFilesGridDataProvider()); $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR), array('fetchGrid', 'fetchRow')); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_AUTHOR), array('fetchGrid', 'fetchRow', 'readQuery', 'participants', 'addQuery', 'editQuery', 'updateQuery')); $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT), array('deleteQuery', 'openQuery', 'closeQuery', 'saveSequence')); }
/** * Constructor */ function __construct() { $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchRow', 'fetchGrid', 'addPreparedEmail', 'editPreparedEmail', 'updatePreparedEmail', 'resetEmail', 'resetAllEmails', 'disableEmail', 'enableEmail', 'deleteCustomEmail')); parent::__construct(); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchRow', 'addSpotlight', 'editSpotlight', 'updateSpotlight', 'deleteSpotlight', 'itemAutocomplete')); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchRow', 'createReviewForm', 'editReviewForm', 'updateReviewForm', 'reviewFormBasics', 'reviewFormElements', 'copyReviewForm', 'reviewFormPreview', 'activateReviewForm', 'deactivateReviewForm', 'deleteReviewForm', 'saveSequence')); }
/** * Constructor. */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR), array('fetchGrid', 'fetchRows', 'fetchRow', 'toggle', 'saveSequence')); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchRow', 'saveSequence', 'add', 'edit', 'upload', 'download', 'update', 'delete')); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER, ROLE_ID_ASSISTANT), array('fetchGrid', 'fetchRows')); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR), array('fetchGrid', 'fetchRow', 'viewEmail')); }
/** * Constructor */ function __construct() { parent::__construct(); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchRow', 'addCustomBlock', 'editCustomBlock', 'updateCustomBlock', 'deleteCustomBlock')); $this->plugin = PluginRegistry::getPlugin('generic', CUSTOMBLOCKMANAGER_PLUGIN_NAME); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_AUTHOR, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT), array('fetchGrid', 'fetchRow', 'addNote', 'insertNote', 'deleteNote')); }
/** * Constructor */ function __construct() { parent::__construct(); $this->addRoleAssignment(array(ROLE_ID_SITE_ADMIN), array('fetchGrid', 'fetchRow', 'createContext', 'editContext', 'updateContext', 'deleteContext', 'saveSequence')); }