Свойство | 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 |
Méthode | 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 |
Résultat | mixed |
public setPermission ( string $key = null, integer $value = null ) | ||
$key | string | key of the permission |
$value | integer | value of the permission |
protected array $_permissionArray | ||
Résultat | array |
protected object $_request | ||
Résultat | object |