Documentation

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_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]

Methods

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
Tags
phpstan-param

array<string, array<string, mixed>> $data

phpstan-return

array<string, list<Permission>>

throws
PermissionParserException
Return values
array<string|int, array<string|int, Permission>>

Search results