本文整理汇总了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'));
}
示例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);
}
示例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();
}
示例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);
}
示例5: array
/**
* Constructor
*/
function __construct()
{
parent::__construct();
$this->addRoleAssignment(array(ROLE_ID_MANAGER), array('uploadImage'));
}
示例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'));
}
示例7: array
/**
* Constructor
*/
function __construct()
{
parent::__construct();
$this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchRow', 'addRights', 'editRights', 'updateRights', 'deleteRights'));
}
示例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'));
}
示例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'));
}
示例10: array
/**
* Constructor
*/
function __construct()
{
parent::__construct();
$this->addRoleAssignment(ROLE_ID_MANAGER, array('fetchGrid', 'fetchRow', 'addAnnouncementType', 'editAnnouncementType', 'updateAnnouncementType', 'deleteAnnouncementType'));
}
示例11: array
/**
* Constructor
*/
function __construct()
{
parent::__construct();
$this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchRow'));
}
示例12: array
/**
* Constructor
*/
function __construct()
{
parent::__construct();
$this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchCategory', 'fetchRow', 'addUserGroup', 'editUserGroup', 'updateUserGroup', 'removeUserGroup', 'assignStage', 'unassignStage'));
}
示例13: array
/**
* Constructor
*/
function __construct()
{
parent::__construct();
$this->addRoleAssignment(ROLE_ID_MANAGER, array('saveLanguageSetting', 'setContextPrimaryLocale'));
}
示例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'));
}
示例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)));
}