PrivilegeUpdater
in package
Table of Contents
- $globalSearchPermissionsCache : mixed
- $globalSearchUsersCache : mixed
- checkGlobalSearchPermissions() : bool
- Checking if user can search globally.
- getGlobalSearchUsers() : array<string|int, mixed>
- Loading a list of modules for users with permissions for global search.
- setAllUpdater() : mixed
- Updating permissions to all modules.
- setUpdater() : mixed
- Add to global permissions update queue.
- update() : mixed
- Updating permissions to records and global search.
- updateOnRecordSave() : mixed
- Update permissions while saving record.
- updateRecordAccess() : mixed
- Updating permissions to records.
- updateSearch() : mixed
- Updating permissions to global search.
Properties
$globalSearchPermissionsCache
private
static mixed
$globalSearchPermissionsCache
= []
$globalSearchUsersCache
private
static mixed
$globalSearchUsersCache
= false
Methods
checkGlobalSearchPermissions()
Checking if user can search globally.
public
static checkGlobalSearchPermissions(string $moduleName[, int $userId = false ]) : bool
Parameters
- $moduleName : string
- $userId : int = false
Return values
bool —getGlobalSearchUsers()
Loading a list of modules for users with permissions for global search.
public
static getGlobalSearchUsers() : array<string|int, mixed>
Return values
array<string|int, mixed> —setAllUpdater()
Updating permissions to all modules.
public
static setAllUpdater() : mixed
Return values
mixed —setUpdater()
Add to global permissions update queue.
public
static setUpdater(string $moduleName[, int $record = false ][, int $priority = false ][, int $type = 1 ]) : mixed
Parameters
- $moduleName : string
-
Module name
- $record : int = false
-
If type = 1 starting number if type = 0 record ID
- $priority : int = false
- $type : int = 1
Return values
mixed —update()
Updating permissions to records and global search.
public
static update(int $record, string $moduleName) : mixed
Parameters
- $record : int
- $moduleName : string
Return values
mixed —updateOnRecordSave()
Update permissions while saving record.
public
static updateOnRecordSave(Vtiger_Record_Model $record) : mixed
Parameters
- $record : Vtiger_Record_Model
Return values
mixed —updateRecordAccess()
Updating permissions to records.
public
static updateRecordAccess(int $record, string $moduleName) : mixed
Parameters
- $record : int
- $moduleName : string
Return values
mixed —updateSearch()
Updating permissions to global search.
public
static updateSearch(int $record, string $moduleName) : mixed
Parameters
- $record : int
- $moduleName : string