PHP Class Bluz\Tests\Fixtures\Models\UserGuest

Author: Anton Shevchuk
Inheritance: extends Bluz\Auth\AbstractRowEntity
Show file Open project: bluzphp/framework

Public Methods

Method Description
getPrivileges ( ) : array Get user privileges
hasPrivilege ( string $module, string $privilege ) : boolean Has role a privilege
hasRole ( integer $roleId ) : boolean Check user role
tryLogin ( ) Can entity login

Method Details

getPrivileges() public method

Get user privileges
public getPrivileges ( ) : array
return array

hasPrivilege() public method

Has role a privilege
public hasPrivilege ( string $module, string $privilege ) : boolean
$module string
$privilege string
return boolean

hasRole() public method

Check user role
public hasRole ( integer $roleId ) : boolean
$roleId integer
return boolean

tryLogin() public method

Can entity login
public tryLogin ( )