PermissibleBase
in package
implements
Permissible
Uses
PermissibleDelegateTrait
Interfaces, Classes, Traits and Enums
Table of Contents
- $perm : Permissible
- $permissibleBase : PermissibleInternal
- __construct() : mixed
- __destruct() : mixed
- addAttachment() : PermissionAttachment
- getEffectivePermissions() : array<string|int, PermissionAttachmentInfo>
- getPermissionRecalculationCallbacks() : ObjectSet|array<string|int, Closure>
- hasPermission() : bool
- isPermissionSet() : bool
- recalculatePermissions() : array<string|int, mixed>
- removeAttachment() : void
- setBasePermission() : void
- unsetBasePermission() : void
Properties
$perm
private
Permissible
$perm
$permissibleBase
private
PermissibleInternal
$permissibleBase
Methods
__construct()
public
__construct(array<string|int, bool> $basePermissions) : mixed
Parameters
- $basePermissions : array<string|int, bool>
Tags
Return values
mixed —__destruct()
public
__destruct() : mixed
Return values
mixed —addAttachment()
public
addAttachment(Plugin $plugin[, string|null $name = null ][, bool|null $value = null ]) : PermissionAttachment
Parameters
- $plugin : Plugin
- $name : string|null = null
- $value : bool|null = null
Return values
PermissionAttachment —getEffectivePermissions()
public
getEffectivePermissions() : array<string|int, PermissionAttachmentInfo>
Return values
array<string|int, PermissionAttachmentInfo> —getPermissionRecalculationCallbacks()
public
getPermissionRecalculationCallbacks() : ObjectSet|array<string|int, Closure>
Tags
Return values
ObjectSet|array<string|int, Closure> —hasPermission()
public
hasPermission(Permission|string $name) : bool
Parameters
- $name : Permission|string
Return values
bool —isPermissionSet()
public
isPermissionSet(Permission|string $name) : bool
Parameters
- $name : Permission|string
Return values
bool —recalculatePermissions()
public
recalculatePermissions() : array<string|int, mixed>
Return values
array<string|int, mixed> —removeAttachment()
public
removeAttachment(PermissionAttachment $attachment) : void
Parameters
- $attachment : PermissionAttachment
Return values
void —setBasePermission()
public
setBasePermission(Permission|string $name, bool $value) : void
Parameters
- $name : Permission|string
- $value : bool
Return values
void —unsetBasePermission()
public
unsetBasePermission(Permission|string $name) : void
Parameters
- $name : Permission|string