PermissionAttachment
in package
Table of Contents
- $permissions : array<string|int, bool>
- $plugin : Plugin
- $subscribers : array<string|int, PermissibleInternal>
- __construct() : mixed
- clearPermissions() : void
- getPermissions() : array<string|int, bool>
- getPlugin() : Plugin
- getSubscribers() : array<string|int, PermissibleInternal>
- setPermission() : void
- setPermissions() : void
- unsetPermission() : void
- unsetPermissions() : void
- recalculatePermissibles() : void
Properties
$permissions
private
array<string|int, bool>
$permissions
= []
$plugin
private
Plugin
$plugin
$subscribers
private
array<string|int, PermissibleInternal>
$subscribers
= []
Tags
Methods
__construct()
public
__construct(Plugin $plugin) : mixed
Parameters
- $plugin : Plugin
Tags
Return values
mixed —clearPermissions()
public
clearPermissions() : void
Return values
void —getPermissions()
public
getPermissions() : array<string|int, bool>
Return values
array<string|int, bool> —getPlugin()
public
getPlugin() : Plugin
Return values
Plugin —getSubscribers()
public
getSubscribers() : array<string|int, PermissibleInternal>
Tags
Return values
array<string|int, PermissibleInternal> —setPermission()
public
setPermission(string|Permission $name, bool $value) : void
Parameters
- $name : string|Permission
- $value : bool
Return values
void —setPermissions()
public
setPermissions(array<string|int, bool> $permissions) : void
Parameters
- $permissions : array<string|int, bool>
Return values
void —unsetPermission()
public
unsetPermission(string|Permission $name) : void
Parameters
- $name : string|Permission
Return values
void —unsetPermissions()
public
unsetPermissions(array<string|int, string> $permissions) : void
Parameters
- $permissions : array<string|int, string>
Return values
void —recalculatePermissibles()
private
recalculatePermissibles() : void