\rex_user_role

Class for user roles.

Summary

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

Methods

hasPerm()

hasPerm(mixed  $perm) : mixed

Returns if the role has the given permission.

Parameters

mixed $perm

Perm key

Returns

mixed —

getComplexPerm()

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

Returns the complex perm.

Parameters

\rex_user $user

User instance

mixed $key

Complex perm key

Returns

\rex_complex_perm|null —

Complex perm

get()

get(mixed  $ids) : null|static

Returns the role for the given ID.

Parameters

mixed $ids

Returns

null|static —

Role instance

removeOrReplaceItem()

removeOrReplaceItem(\rex_extension_point  $ep) : mixed

Parameters

\rex_extension_point $ep

Returns

mixed —