PHP Class Bluz\Auth\AbstractRowEntity

Inheritance: extends Bluz\Db\Row, implements Bluz\Auth\EntityInterface
Show file Open project: bluzphp/framework

Public Methods

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

Method Details

getPrivileges() abstract public method

Get privileges
abstract 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

tryLogin() abstract public method

Can entity login
abstract public tryLogin ( ) : boolean
return boolean