PermissionParser
in package
Table of Contents
- DEFAULT_FALSE = "false"
- DEFAULT_NOT_OP = "notop"
- DEFAULT_OP = "op"
- DEFAULT_STRING_MAP = ["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]
- DEFAULT_TRUE = "true"
- defaultFromString() : string
- loadPermissions() : array<string|int, array<string|int, Permission>>
Constants
DEFAULT_FALSE
public
mixed
DEFAULT_FALSE
= "false"
DEFAULT_NOT_OP
public
mixed
DEFAULT_NOT_OP
= "notop"
DEFAULT_OP
public
mixed
DEFAULT_OP
= "op"
DEFAULT_STRING_MAP
public
mixed
DEFAULT_STRING_MAP
= ["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]
DEFAULT_TRUE
public
mixed
DEFAULT_TRUE
= "true"
Methods
defaultFromString()
public
static defaultFromString(bool|string $value) : string
Parameters
- $value : bool|string
Tags
Return values
string —loadPermissions()
public
static loadPermissions(array<string|int, array<string|int, mixed>> $data[, string $default = self::DEFAULT_FALSE ]) : array<string|int, array<string|int, Permission>>
Parameters
- $data : array<string|int, array<string|int, mixed>>
- $default : string = self::DEFAULT_FALSE