Documentation

Permissible

Table of Contents

addAttachment()  : PermissionAttachment
getEffectivePermissions()  : array<string|int, PermissionAttachmentInfo>
getPermissionRecalculationCallbacks()  : ObjectSet|array<string|int, Closure>
hasPermission()  : bool
Returns the permission value if overridden, or the default value if not
isPermissionSet()  : bool
Checks if this instance has a permission overridden
recalculatePermissions()  : array<string|int, bool>
removeAttachment()  : void

Methods

getPermissionRecalculationCallbacks()

public getPermissionRecalculationCallbacks() : ObjectSet|array<string|int, Closure>
Tags
phpstan-return

ObjectSet<\Closure(array<string, bool> $changedPermissionsOldValues) : void>

Return values
ObjectSet|array<string|int, Closure>

hasPermission()

Returns the permission value if overridden, or the default value if not

public hasPermission(string|Permission $name) : bool
Parameters
$name : string|Permission
Return values
bool

isPermissionSet()

Checks if this instance has a permission overridden

public isPermissionSet(string|Permission $name) : bool
Parameters
$name : string|Permission
Return values
bool

recalculatePermissions()

public recalculatePermissions() : array<string|int, bool>
Tags
phpstan-return

array<string, bool>

Return values
array<string|int, bool>

changed permission name => old value

Search results