本文整理汇总了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'));
}
示例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);
}
示例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();
}
示例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);
}
示例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();
}
示例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);
}
示例7: NotificationsGridHandler
/**
* Constructor
*/
function NotificationsGridHandler()
{
parent::GridHandler();
}
示例8: ArticleGalleyGridHandler
/**
* Constructor
*/
function ArticleGalleyGridHandler()
{
parent::GridHandler();
$this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchRow', 'saveSequence', 'add', 'edit', 'update', 'delete', 'setAvailable'));
}
示例9: ListbuilderHandler
/**
* Constructor.
*/
function ListbuilderHandler()
{
parent::GridHandler();
}
示例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'));
}
示例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'));
}
示例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'));
}
示例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'));
}
示例15: UserGroupGridHandler
/**
* Constructor
*/
function UserGroupGridHandler()
{
parent::GridHandler();
$functions = array('fetchGrid', 'fetchRow', 'addUserGroup', 'editUserGroup', 'removeUserGroup', 'updateUserGroup');
$this->addRoleAssignment(array(ROLE_ID_PRESS_MANAGER), $functions);
}