/**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     // Assistants get read-only access
     $this->addRoleAssignment(array(ROLE_ID_ASSISTANT), $peOps = array('fetchGrid', 'fetchCategory', 'fetchRow', 'viewNotify', 'fetchTemplateBody', 'sendNotification'));
     // Managers and Editors additionally get administrative access
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR), array_merge($peOps, array('addParticipant', 'deleteParticipant', 'saveParticipant', 'fetchUserList')));
     $this->setTitle('editor.submission.stageParticipants');
 }
 /**
  * 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)
 {
     // the StageId can be set later if necessary.
     if ($stageId) {
         $this->_stageId = (int) $stageId;
     }
     $this->_capabilities = new FilesGridCapabilities($capabilities);
     parent::__construct($dataProvider);
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct(new PublicationFormatCategoryGridDataProvider($this));
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR), array('setAvailable', 'editApprovedProof', 'saveApprovedProof'));
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT), array('fetchGrid', 'fetchRow', 'fetchCategory', 'addFormat', 'editFormat', 'editFormatTab', 'updateFormat', 'deleteFormat', 'setApproved', 'setProofFileCompletion', 'selectFiles', 'identifiers', 'updateIdentifiers', 'clearPubId', 'dependentFiles'));
 }
Example #4
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchCategory', 'fetchRow', 'saveSequence', 'removeArticle'));
     $this->publishedArticlesBySectionId = array();
 }
 /**
  * Constructor
  * @param $roles array
  */
 function __construct($roles)
 {
     $this->addRoleAssignment($roles, array('enable', 'disable', 'manage', 'fetchGrid, fetchCategory', 'fetchRow'));
     $this->addRoleAssignment(ROLE_ID_SITE_ADMIN, array('uploadPlugin', 'upgradePlugin', 'deletePlugin', 'saveUploadPlugin'));
     parent::__construct();
 }
Example #6
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_AUTHOR, ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER, ROLE_ID_ASSISTANT), array('fetchGrid', 'fetchRow', 'fetchCategory', 'saveSequence', 'addChapter', 'editChapter', 'updateChapter', 'deleteChapter', 'addAuthor', 'editAuthor', 'updateAuthor', 'deleteAuthor'));
     $this->addRoleAssignment(ROLE_ID_REVIEWER, array('fetchGrid', 'fetchRow'));
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchCategory', 'fetchRow', 'addRepresentative', 'editRepresentative', 'updateRepresentative', 'deleteRepresentative'));
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_SITE_ADMIN), array('fetchGrid', 'fetchCategory', 'fetchRow'));
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchCategory', 'fetchRow', 'addCategory', 'editCategory', 'updateCategory', 'deleteCategory', 'uploadImage', 'saveSequence'));
 }