Property | Type | Description | |
---|---|---|---|
$_callArray | array | array of the call | |
$_permissionArray | array | array of the permission | |
$_request | object | instance of the request class | |
$_typeArray | array | array of the type | |
$_userArray | array | array of the user |
Method | Description | |
---|---|---|
__call ( string $method = null, array $argumentArray = [] ) : mixed | call method as needed | |
__construct ( |
constructor of the class | |
getPermission ( string $key = null ) : mixed | get the permission | |
getStatus ( ) : boolean | get the auth status | |
getUser ( string $key = null ) : mixed | get the user | |
init ( ) | init the class | |
login ( integer $userId = null ) : boolean | login the user | |
logout ( ) : boolean | logout the user | |
save ( ) : boolean | save user and permission | |
setPermission ( string $key = null, integer $value = null ) | set the permission | |
setUser ( string $key = null, string $value = null ) | set the user |
public __construct ( |
||
$request | instance of the request class |
public getPermission ( string $key = null ) : mixed | ||
$key | string | key of the permission |
return | mixed |
public setPermission ( string $key = null, integer $value = null ) | ||
$key | string | key of the permission |
$value | integer | value of the permission |
protected array $_permissionArray | ||
return | array |
protected object $_request | ||
return | object |