\rex_user_role_interface

Interface for user roles.

Summary

Methods
Constants
hasPerm()
getComplexPerm()
get()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

hasPerm()

hasPerm(string  $perm) : mixed

Returns if the role has the given permission.

Parameters

string $perm

Perm key

Returns

mixed —

getComplexPerm()

getComplexPerm(\rex_user  $user, string  $key) : \rex_complex_perm|null

Returns the complex perm.

Parameters

\rex_user $user

User instance

string $key

Complex perm key

Returns

\rex_complex_perm|null —

Complex perm

get()

get(string  $id) : null|static

Returns the role for the given ID.

Parameters

string $id

IDs comma seperated

Returns

null|static —

Role instance