PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\permission\PermissionAttachment Class Reference
+ Collaboration diagram for pocketmine\permission\PermissionAttachment:

Public Member Functions

 __construct (Plugin $plugin, Permissible $permissible)
 
 getPlugin ()
 
 setRemovalCallback (PermissionRemovedExecutor $ex)
 
 getRemovalCallback ()
 
 getPermissible ()
 
 getPermissions ()
 
 clearPermissions ()
 
 setPermissions (array $permissions)
 
 unsetPermissions (array $permissions)
 
 setPermission ($name, $value)
 
 unsetPermission ($name)
 
 remove ()
 

Detailed Description

Definition at line 27 of file PermissionAttachment.php.

Constructor & Destructor Documentation

pocketmine\permission\PermissionAttachment::__construct ( Plugin  $plugin,
Permissible  $permissible 
)
Parameters
Plugin$plugin
Permissible$permissible
Exceptions
PluginException

Definition at line 48 of file PermissionAttachment.php.

References pocketmine\plugin\Plugin\getDescription().

+ Here is the call graph for this function:

Member Function Documentation

pocketmine\permission\PermissionAttachment::clearPermissions ( )
Returns
bool[]

Definition at line 95 of file PermissionAttachment.php.

pocketmine\permission\PermissionAttachment::getPermissible ( )
Returns
Permissible

Definition at line 81 of file PermissionAttachment.php.

pocketmine\permission\PermissionAttachment::getPermissions ( )
Returns
bool[]

Definition at line 88 of file PermissionAttachment.php.

pocketmine\permission\PermissionAttachment::getPlugin ( )
Returns
Plugin

Definition at line 60 of file PermissionAttachment.php.

pocketmine\permission\PermissionAttachment::getRemovalCallback ( )
Returns
PermissionRemovedExecutor

Definition at line 74 of file PermissionAttachment.php.

Referenced by pocketmine\permission\PermissibleBase\removeAttachment().

+ Here is the caller graph for this function:

pocketmine\permission\PermissionAttachment::remove ( )
Returns
void

Definition at line 150 of file PermissionAttachment.php.

pocketmine\permission\PermissionAttachment::setPermission (   $name,
  $value 
)
Parameters
string | Permission$name
bool$value

Definition at line 124 of file PermissionAttachment.php.

References pocketmine\permission\Permission\getName().

+ Here is the call graph for this function:

pocketmine\permission\PermissionAttachment::setPermissions ( array  $permissions)
Parameters
bool[]$permissions

Definition at line 103 of file PermissionAttachment.php.

pocketmine\permission\PermissionAttachment::setRemovalCallback ( PermissionRemovedExecutor  $ex)
Parameters
PermissionRemovedExecutor$ex

Definition at line 67 of file PermissionAttachment.php.

pocketmine\permission\PermissionAttachment::unsetPermission (   $name)
Parameters
string | Permission$name

Definition at line 139 of file PermissionAttachment.php.

References pocketmine\permission\Permission\getName().

+ Here is the call graph for this function:

pocketmine\permission\PermissionAttachment::unsetPermissions ( array  $permissions)
Parameters
string[]$permissions

Definition at line 113 of file PermissionAttachment.php.


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