Documentation

PrivilegeAdvanced
in package

Advanced privilege class.

Tags
copyright

YetiForce S.A.

license

YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)

author

Mariusz Krzaczkowski m.krzaczkowski@yetiforce.com

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

$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
Return values
mixed

        

Search results