UserCapabilities
in package
Tags
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_DEBUG_OUTPUT
public
mixed
RULE_DEBUG_OUTPUT
= 'debugOutput'
RULE_EDIT_MODULES
public
mixed
RULE_EDIT_MODULES
= 'editModules'
RULE_EDIT_SETTINGS
public
mixed
RULE_EDIT_SETTINGS
= 'editSettings'
RULE_EDIT_VIEW_ADDRESS
public
mixed
RULE_EDIT_VIEW_ADDRESS
= 'editViewAddress'
RULE_EDIT_VIEW_ESTATE
public
mixed
RULE_EDIT_VIEW_ESTATE
= 'editViewEstate'
RULE_EDIT_VIEW_FORM
public
mixed
RULE_EDIT_VIEW_FORM
= 'editViewForm'
RULE_VIEW_MAIN_PAGE
public
mixed
RULE_VIEW_MAIN_PAGE
= 'viewMainPage'
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
checkIfCurrentUserCan()
public
checkIfCurrentUserCan(string $rule) : mixed
Parameters
- $rule : string
Tags
Return values
mixed —getCapabilityForRule()
public
getCapabilityForRule(string $rule) : string
Parameters
- $rule : string