PrivilegeAdvanced
in package
Advanced privilege class.
Tags
Table of Contents
- $webservice : mixed
- $cache : mixed
- $cacheFile : mixed
- checkPermissions() : bool|int
- Check advanced permissions.
- get() : array<string|int, mixed>
- Load advanced permission rules for specific module.
- reloadCache() : mixed
- Update advanced permissions cache.
Properties
$webservice
public
static mixed
$webservice
= true
$cache
protected
static mixed
$cache
= false
$cacheFile
protected
static mixed
$cacheFile
= 'user_privileges/advancedPermission.php'
Methods
checkPermissions()
Check advanced permissions.
public
static checkPermissions(int $record, string $moduleName, mixed $userId) : bool|int
Parameters
- $record : int
- $moduleName : string
- $userId : mixed
Return values
bool|int —get()
Load advanced permission rules for specific module.
public
static get(string $moduleName) : array<string|int, mixed>
Parameters
- $moduleName : string
Return values
array<string|int, mixed> —reloadCache()
Update advanced permissions cache.
public
static reloadCache() : mixed