PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
pocketmine\permission\PermissionManager Class Reference
+ Collaboration diagram for pocketmine\permission\PermissionManager:

Public Member Functions

 addPermission (Permission $permission)
 
 clearPermissions ()
 
 getPermission (string $name)
 
 getPermissions ()
 
 getPermissionSubscriptions (string $permission)
 
 removePermission (Permission|string $permission)
 
 subscribeToPermission (string $permission, PermissibleInternal $permissible)
 
 unsubscribeFromAllPermissions (PermissibleInternal $permissible)
 
 unsubscribeFromPermission (string $permission, PermissibleInternal $permissible)
 

Static Public Member Functions

static getInstance ()
 

Protected Attributes

array $permissions = []
 
array $permSubs = []
 

Detailed Description

Definition at line 31 of file PermissionManager.php.

Member Function Documentation

◆ addPermission()

pocketmine\permission\PermissionManager::addPermission ( Permission $permission)

Definition at line 57 of file PermissionManager.php.

◆ clearPermissions()

pocketmine\permission\PermissionManager::clearPermissions ( )

Definition at line 130 of file PermissionManager.php.

◆ getInstance()

static pocketmine\permission\PermissionManager::getInstance ( )
static

Definition at line 34 of file PermissionManager.php.

◆ getPermission()

pocketmine\permission\PermissionManager::getPermission ( string $name)

Definition at line 53 of file PermissionManager.php.

◆ getPermissions()

pocketmine\permission\PermissionManager::getPermissions ( )
Returns
Permission[]

Definition at line 126 of file PermissionManager.php.

◆ getPermissionSubscriptions()

pocketmine\permission\PermissionManager::getPermissionSubscriptions ( string $permission)
Deprecated
Superseded by server chat broadcast channels
See also
Server::getBroadcastChannelSubscribers()
Returns
PermissibleInternal[]

Definition at line 119 of file PermissionManager.php.

◆ removePermission()

pocketmine\permission\PermissionManager::removePermission ( Permission|string $permission)

Definition at line 67 of file PermissionManager.php.

◆ subscribeToPermission()

pocketmine\permission\PermissionManager::subscribeToPermission ( string $permission,
PermissibleInternal $permissible )
Deprecated
Superseded by server chat broadcast channels
See also
Server::subscribeToBroadcastChannel()

Definition at line 79 of file PermissionManager.php.

◆ unsubscribeFromAllPermissions()

pocketmine\permission\PermissionManager::unsubscribeFromAllPermissions ( PermissibleInternal $permissible)
Deprecated
Superseded by server chat broadcast channels
See also
Server::unsubscribeFromAllBroadcastChannels()

Definition at line 104 of file PermissionManager.php.

◆ unsubscribeFromPermission()

pocketmine\permission\PermissionManager::unsubscribeFromPermission ( string $permission,
PermissibleInternal $permissible )
Deprecated
Superseded by server chat broadcast channels
See also
Server::unsubscribeFromBroadcastChannel()

Definition at line 90 of file PermissionManager.php.

Member Data Documentation

◆ $permissions

array pocketmine\permission\PermissionManager::$permissions = []
protected

Definition at line 46 of file PermissionManager.php.

◆ $permSubs

array pocketmine\permission\PermissionManager::$permSubs = []
protected

Definition at line 51 of file PermissionManager.php.


The documentation for this class was generated from the following file: