Property | Type | Description | |
---|---|---|---|
$defaults | array | Default permissions. | |
$permissions | array | Added permissions. |
Method | Description | |
---|---|---|
add ( string $action, boolean $default = false, $category = 'misc' ) | Add a permission. | |
getDefaults ( boolean $withCategories = false ) : array | Returns default permissions. | |
getPermissions ( $withCategories = false ) : array | Returns default and added permissions. |
public static getDefaults ( boolean $withCategories = false ) : array | ||
$withCategories | boolean | |
return | array |
public static getPermissions ( $withCategories = false ) : array | ||
return | array |
protected static array $defaults | ||
return | array |
protected static array $permissions | ||
return | array |