PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
pocketmine\permission\PermissionParser Class Reference
+ Collaboration diagram for pocketmine\permission\PermissionParser:

Static Public Member Functions

static defaultFromString (bool|string $value)
 
static loadPermissions (array $data, string $default=self::DEFAULT_FALSE)
 

Public Attributes

const DEFAULT_FALSE = "false"
 
const DEFAULT_NOT_OP = "notop"
 
const DEFAULT_OP = "op"
 
const DEFAULT_STRING_MAP
 
const DEFAULT_TRUE = "true"
 

Detailed Description

Definition at line 30 of file PermissionParser.php.

Member Function Documentation

◆ defaultFromString()

static pocketmine\permission\PermissionParser::defaultFromString ( bool|string  $value)
static
Exceptions
PermissionParserException

Definition at line 63 of file PermissionParser.php.

Referenced by pocketmine\permission\PermissionParser\loadPermissions().

+ Here is the caller graph for this function:

◆ loadPermissions()

static pocketmine\permission\PermissionParser::loadPermissions ( array  $data,
string  $default = self::DEFAULT_FALSE 
)
static
Parameters
mixed[][]$data@phpstan-param array<string, array<string, mixed>> $data
Returns
Permission[][] @phpstan-return array<string, list<Permission>>
Exceptions
PermissionParserException

Definition at line 83 of file PermissionParser.php.

References pocketmine\permission\PermissionParser\defaultFromString().

+ Here is the call graph for this function:

Member Data Documentation

◆ DEFAULT_FALSE

const pocketmine\permission\PermissionParser::DEFAULT_FALSE = "false"

Definition at line 35 of file PermissionParser.php.

◆ DEFAULT_NOT_OP

const pocketmine\permission\PermissionParser::DEFAULT_NOT_OP = "notop"

Definition at line 33 of file PermissionParser.php.

◆ DEFAULT_OP

const pocketmine\permission\PermissionParser::DEFAULT_OP = "op"

Definition at line 32 of file PermissionParser.php.

◆ DEFAULT_STRING_MAP

const pocketmine\permission\PermissionParser::DEFAULT_STRING_MAP
Initial value:
= [
"op" => self::DEFAULT_OP,
"isop" => self::DEFAULT_OP,
"operator" => self::DEFAULT_OP,
"isoperator" => self::DEFAULT_OP,
"admin" => self::DEFAULT_OP,
"isadmin" => self::DEFAULT_OP,
"!op" => self::DEFAULT_NOT_OP,
"notop" => self::DEFAULT_NOT_OP,
"!operator" => self::DEFAULT_NOT_OP,
"notoperator" => self::DEFAULT_NOT_OP,
"!admin" => self::DEFAULT_NOT_OP,
"notadmin" => self::DEFAULT_NOT_OP,
"true" => self::DEFAULT_TRUE,
"false" => self::DEFAULT_FALSE,
]

Definition at line 37 of file PermissionParser.php.

◆ DEFAULT_TRUE

const pocketmine\permission\PermissionParser::DEFAULT_TRUE = "true"

Definition at line 34 of file PermissionParser.php.


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