当前位置: 首页>>代码示例>>PHP>>正文


PHP GridHandler::__construct方法代码示例

本文整理汇总了PHP中GridHandler::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP GridHandler::__construct方法的具体用法?PHP GridHandler::__construct怎么用?PHP GridHandler::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GridHandler的用法示例。


在下文中一共展示了GridHandler::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

 /**
  * 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'));
 }
开发者ID:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:10,代码来源:AuthorGridHandler.inc.php

示例2: FilesGridCapabilities

 /**
  * 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);
 }
开发者ID:pkp,项目名称:pkp-lib,代码行数:15,代码来源:SubmissionFilesGridHandler.inc.php

示例3:

 /**
  * 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();
 }
开发者ID:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:11,代码来源:PKPFilterGridHandler.inc.php

示例4: unset

 /**
  * 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);
 }
开发者ID:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:15,代码来源:PKPReviewerGridHandler.inc.php

示例5: array

 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('uploadImage'));
 }
开发者ID:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:8,代码来源:SetupGridHandler.inc.php

示例6: array

 /**
  * 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'));
 }
开发者ID:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:9,代码来源:PluginGalleryGridHandler.inc.php

示例7: array

 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchRow', 'addRights', 'editRights', 'updateRights', 'deleteRights'));
 }
开发者ID:NateWr,项目名称:omp,代码行数:8,代码来源:SalesRightsGridHandler.inc.php

示例8: array

 /**
  * 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'));
 }
开发者ID:pkp,项目名称:ojs,代码行数:8,代码来源:ArticleGalleyGridHandler.inc.php

示例9: array

 /**
  * 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'));
 }
开发者ID:pkp,项目名称:ojs,代码行数:8,代码来源:IssueGridHandler.inc.php

示例10: array

 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(ROLE_ID_MANAGER, array('fetchGrid', 'fetchRow', 'addAnnouncementType', 'editAnnouncementType', 'updateAnnouncementType', 'deleteAnnouncementType'));
 }
开发者ID:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:8,代码来源:AnnouncementTypeGridHandler.inc.php

示例11: array

 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchRow'));
 }
开发者ID:pkp,项目名称:ojs,代码行数:8,代码来源:ExportPublishedSubmissionsListGridHandler.inc.php

示例12: array

 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchCategory', 'fetchRow', 'addUserGroup', 'editUserGroup', 'updateUserGroup', 'removeUserGroup', 'assignStage', 'unassignStage'));
 }
开发者ID:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:8,代码来源:UserGroupGridHandler.inc.php

示例13: array

 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(ROLE_ID_MANAGER, array('saveLanguageSetting', 'setContextPrimaryLocale'));
 }
开发者ID:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:8,代码来源:LanguageGridHandler.inc.php

示例14: array

 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchRow', 'editUser', 'updateUser', 'updateUserRoles', 'editDisableUser', 'disableUser', 'removeUser', 'addUser', 'editEmail', 'sendEmail', 'mergeUsers'));
 }
开发者ID:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:8,代码来源:UserGridHandler.inc.php

示例15: import

 /**
  * 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)));
 }
开发者ID:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:9,代码来源:CategoryGridHandler.inc.php


注:本文中的GridHandler::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。