hasContentPermission()
hasPermission()
unserializePermissions()
__construct()
Permission accessor helper.
package | XenForo_Permissions |
---|
hasContentPermission(array $contentPermissions, string $permission) : true | false | int
This differs from hasPermission() in that there is no group specified. The first dimension has the permissions.
If the specified permission exists but is an array, an exception will be thrown.
array
Format: [permission] => value
string
Permission ID
true
false
int
False if the permission isn't found; the value of the permission otherwisehasPermission(array $permissions, string $group, string $permission) : true | false | int
Used for global permissions which have a group and an individual permission.
array
Grouped permissions ([group][permission] => value)
string
Permission group
string
Permission ID
true
false
int
False if the permission isn't found; the value of the permission otherwiseunserializePermissions(string $permissionString) : array
string
array
__construct()
Use statically.