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


PHP GridHandler::GridHandler方法代码示例

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


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

示例1: AuthorGridHandler

 /**
  * Constructor
  */
 function AuthorGridHandler()
 {
     parent::GridHandler();
     $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:selwyntcy,项目名称:pkp-lib,代码行数:10,代码来源:AuthorGridHandler.inc.php

示例2: SubmissionFilesGridHandler

 /**
  * 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 SubmissionFilesGridHandler($dataProvider, $stageId, $capabilities = 0)
 {
     parent::GridHandler($dataProvider);
     if ($stageId) {
         $this->_stageId = (int) $stageId;
     }
     $this->_capabilities = new FilesGridCapabilities($capabilities);
 }
开发者ID:jprk,项目名称:pkp-lib,代码行数:15,代码来源:SubmissionFilesGridHandler.inc.php

示例3: PKPFilterGridHandler

 /**
  * Constructor
  */
 function PKPFilterGridHandler()
 {
     // Instantiate the citation DAO which will implicitly
     // define the filter groups for parsers and lookup
     // database connectors.
     DAORegistry::getDAO('CitationDAO');
     parent::GridHandler();
 }
开发者ID:selwyntcy,项目名称:pkp-lib,代码行数:11,代码来源:PKPFilterGridHandler.inc.php

示例4: SubmissionFilesGridHandler

 /**
  * 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 SubmissionFilesGridHandler(&$dataProvider, $stageId, $capabilities)
 {
     $this->_stageId = (int) $stageId;
     $this->_canAdd = (bool) ($capabilities & FILE_GRID_ADD);
     $this->_canDownloadAll = (bool) ($capabilities & FILE_GRID_DOWNLOAD_ALL);
     $this->_canDelete = (bool) ($capabilities & FILE_GRID_DELETE);
     parent::GridHandler($dataProvider);
 }
开发者ID:jerico-dev,项目名称:omp,代码行数:15,代码来源:SubmissionFilesGridHandler.inc.php

示例5: SubmissionFilesGridHandler

 /**
  * Constructor
  * @param $fileStage integer the workflow stage
  *  file storage that this grid operates on. One of
  *  the MONOGRAPH_FILE_* constants.
  * @param $canAdd boolen whether the grid will contain
  *  an "add file" button.
  * @param $revisionOnly boolean whether this grid
  *  allows uploading of revisions only or whether also
  *  new files can be uploaded.
  */
 function SubmissionFilesGridHandler($fileStage, $canAdd = true, $revisionOnly = false)
 {
     assert(is_numeric($fileStage) && $fileStage > 0);
     $this->_fileStage = (int) $fileStage;
     $this->_canAdd = (bool) $canAdd;
     $this->_revisionOnly = (bool) $revisionOnly;
     parent::GridHandler();
 }
开发者ID:ramonsodoma,项目名称:omp,代码行数:19,代码来源:SubmissionFilesGridHandler.inc.php

示例6: PKPReviewerGridHandler

 /**
  * Constructor
  */
 function PKPReviewerGridHandler()
 {
     parent::GridHandler();
     $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:energylevels,项目名称:pkp-lib,代码行数:15,代码来源:PKPReviewerGridHandler.inc.php

示例7: NotificationsGridHandler

 /**
  * Constructor
  */
 function NotificationsGridHandler()
 {
     parent::GridHandler();
 }
开发者ID:jprk,项目名称:pkp-lib,代码行数:7,代码来源:NotificationsGridHandler.inc.php

示例8: ArticleGalleyGridHandler

 /**
  * Constructor
  */
 function ArticleGalleyGridHandler()
 {
     parent::GridHandler();
     $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchRow', 'saveSequence', 'add', 'edit', 'update', 'delete', 'setAvailable'));
 }
开发者ID:relaciones-internacionales-journal,项目名称:ojs,代码行数:8,代码来源:ArticleGalleyGridHandler.inc.php

示例9: ListbuilderHandler

 /**
  * Constructor.
  */
 function ListbuilderHandler()
 {
     parent::GridHandler();
 }
开发者ID:ramonsodoma,项目名称:pkp-lib,代码行数:7,代码来源:ListbuilderHandler.inc.php

示例10: PluginGalleryGridHandler

 /**
  * Constructor
  */
 function PluginGalleryGridHandler()
 {
     parent::GridHandler();
     $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:relaciones-internacionales-journal,项目名称:pkp-lib,代码行数:9,代码来源:PluginGalleryGridHandler.inc.php

示例11: IssueGridHandler

 /**
  * Constructor
  */
 function IssueGridHandler()
 {
     parent::GridHandler();
     $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:bkroll,项目名称:ojs,代码行数:8,代码来源:IssueGridHandler.inc.php

示例12: ExportableUsersGridHandler

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

示例13: UserGroupGridHandler

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

示例14: IssueGridHandler

 /**
  * Constructor
  */
 function IssueGridHandler()
 {
     parent::GridHandler();
     $this->addRoleAssignment(array(ROLE_ID_EDITOR, ROLE_ID_MANAGER), array('fetchGrid', 'fetchRow', 'addIssue', 'editIssue', 'editIssueData', 'updateIssue', 'uploadFile', 'editCover', 'updateCover', 'issueToc', 'issueGalleys', 'deleteIssue', 'publishIssue', 'unpublishIssue'));
 }
开发者ID:jalperin,项目名称:ojs,代码行数:8,代码来源:IssueGridHandler.inc.php

示例15: UserGroupGridHandler

 /**
  * Constructor
  */
 function UserGroupGridHandler()
 {
     parent::GridHandler();
     $functions = array('fetchGrid', 'fetchRow', 'addUserGroup', 'editUserGroup', 'removeUserGroup', 'updateUserGroup');
     $this->addRoleAssignment(array(ROLE_ID_PRESS_MANAGER), $functions);
 }
开发者ID:jerico-dev,项目名称:omp,代码行数:9,代码来源:UserGroupGridHandler.inc.php


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