onOffice WP Plugin

UserCapabilities
in package

Tags
url

http://www.onoffice.de

copyright

2003-2019, onOffice(R) GmbH

Table of Contents

RULE_DEBUG_OUTPUT  = 'debugOutput'
RULE_EDIT_MODULES  = 'editModules'
RULE_EDIT_SETTINGS  = 'editSettings'
RULE_EDIT_VIEW_ADDRESS  = 'editViewAddress'
RULE_EDIT_VIEW_ESTATE  = 'editViewEstate'
RULE_EDIT_VIEW_FORM  = 'editViewForm'
RULE_VIEW_MAIN_PAGE  = 'viewMainPage'
$_ruleToCapability  : array<string|int, mixed>
checkIfCurrentUserCan()  : mixed
getCapabilityForRule()  : string

Constants

RULE_EDIT_VIEW_ADDRESS

public mixed RULE_EDIT_VIEW_ADDRESS = 'editViewAddress'

RULE_EDIT_VIEW_ESTATE

public mixed RULE_EDIT_VIEW_ESTATE = 'editViewEstate'

Properties

$_ruleToCapability

private array<string|int, mixed> $_ruleToCapability = [self::RULE_VIEW_MAIN_PAGE => 'edit_pages', self::RULE_EDIT_VIEW_ADDRESS => 'edit_pages', self::RULE_EDIT_VIEW_ESTATE => 'edit_pages', self::RULE_EDIT_VIEW_FORM => 'edit_pages', self::RULE_EDIT_MODULES => 'edit_pages', self::RULE_EDIT_SETTINGS => 'edit_pages', self::RULE_DEBUG_OUTPUT => 'edit_pages']

Methods

getCapabilityForRule()

public getCapabilityForRule(string $rule) : string
Parameters
$rule : string
Tags
throws
UnexpectedValueException
Return values
string

Search results