Documentation

rex_user_role
in package
implements rex_user_role_interface

Class for user roles.

Tags
author

gharlan

Table of Contents

Interfaces

rex_user_role_interface
Interface for user roles.

Methods

get()  : static|null
Returns the role for the given ID.
getComplexPerm()  : rex_complex_perm|null
Returns the complex perm.
hasPerm()  : bool
Returns if the role has the given permission.
removeOrReplaceItem()  : void

Methods

get()

Returns the role for the given ID.

public static get(mixed $ids) : static|null
Parameters
$ids : mixed
Return values
static|null

Role instance

getComplexPerm()

Returns the complex perm.

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

User instance

$key : mixed

Complex perm key

Return values
rex_complex_perm|null

Complex perm

hasPerm()

Returns if the role has the given permission.

public hasPerm(mixed $perm) : bool
Parameters
$perm : mixed

Perm key

Return values
bool

        
On this page

Search results