Permissible
in
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
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()
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
Return values
array<string|int, bool> —changed permission name => old value
removeAttachment()
public
removeAttachment(PermissionAttachment $attachment) : void
Parameters
- $attachment : PermissionAttachment