|
const | DEFAULT_OP = "op" |
|
const | DEFAULT_NOT_OP = "notop" |
|
const | DEFAULT_TRUE = "true" |
|
const | DEFAULT_FALSE = "false" |
|
|
static | $DEFAULT_PERMISSION = self::DEFAULT_OP |
|
__construct |
( |
|
$name, |
|
|
|
$description = null , |
|
|
|
$defaultValue = null , |
|
|
array |
$children = [] |
|
) |
| |
Creates a new Permission object to be attached to Permissible objects
- Parameters
-
string | $name | |
string | $description | |
string | $defaultValue | |
| Permission[] | $children |
addParent |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
static getByName |
( |
|
$value | ) |
|
|
static |
static loadPermission |
( |
|
$name, |
|
|
array |
$data, |
|
|
|
$default = self::DEFAULT_OP , |
|
|
& |
$output = [] |
|
) |
| |
|
static |
- Parameters
-
string | $name | |
array | $data | |
string | $default | |
array | $output | |
- Returns
- Permission
- Exceptions
-
static loadPermissions |
( |
array |
$data, |
|
|
|
$default = self::DEFAULT_OP |
|
) |
| |
|
static |
The documentation for this class was generated from the following file:
- /Users/Kids/Desktop/Doxygen/pocketmine/permission/Permission.php