PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
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 29 of file PermissionManager.php.

Member Function Documentation

◆ addPermission()

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

Definition at line 49 of file PermissionManager.php.

◆ clearPermissions()

pocketmine\permission\PermissionManager::clearPermissions ( )

Definition at line 108 of file PermissionManager.php.

◆ getInstance()

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

Definition at line 32 of file PermissionManager.php.

◆ getPermission()

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

Definition at line 45 of file PermissionManager.php.

◆ getPermissions()

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

Definition at line 104 of file PermissionManager.php.

◆ getPermissionSubscriptions()

pocketmine\permission\PermissionManager::getPermissionSubscriptions ( string $permission)
Returns
PermissibleInternal[]

Definition at line 97 of file PermissionManager.php.

◆ removePermission()

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

Definition at line 59 of file PermissionManager.php.

◆ subscribeToPermission()

pocketmine\permission\PermissionManager::subscribeToPermission ( string $permission,
PermissibleInternal $permissible )

Definition at line 67 of file PermissionManager.php.

◆ unsubscribeFromAllPermissions()

pocketmine\permission\PermissionManager::unsubscribeFromAllPermissions ( PermissibleInternal $permissible)

Definition at line 84 of file PermissionManager.php.

◆ unsubscribeFromPermission()

pocketmine\permission\PermissionManager::unsubscribeFromPermission ( string $permission,
PermissibleInternal $permissible )

Definition at line 74 of file PermissionManager.php.

Member Data Documentation

◆ $permissions

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

Definition at line 41 of file PermissionManager.php.

◆ $permSubs

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

Definition at line 43 of file PermissionManager.php.


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