Documentation

AdminAccess
in package

Admin privilege basic class.

Table of Contents

ACCESS_TABLE_NAME  = 'a_#__settings_access'
Table name with accesses.
EXCEPTIONS  = ['Vtiger', 'YetiForce']
Exceptions. Modules without authorization.
MODULE_STATUS_ACTIVE  = 1
Module status active.
MODULES_TABLE_NAME  = 'a_#__settings_modules'
Table name with settings modules.
isPermitted()  : bool
Function to check permission.
getActiveModules()  : array<string|int, string>
Gets active setting modules.
getPermittedModulesByUser()  : array<string|int, string>
Gets permitted modules by user ID.

Constants

ACCESS_TABLE_NAME

Table name with accesses.

public mixed ACCESS_TABLE_NAME = 'a_#__settings_access'

EXCEPTIONS

Exceptions. Modules without authorization.

public mixed EXCEPTIONS = ['Vtiger', 'YetiForce']

MODULE_STATUS_ACTIVE

Module status active.

public mixed MODULE_STATUS_ACTIVE = 1

MODULES_TABLE_NAME

Table name with settings modules.

public mixed MODULES_TABLE_NAME = 'a_#__settings_modules'

Methods

isPermitted()

Function to check permission.

public static isPermitted(string $moduleName[, int $userId = null ]) : bool
Parameters
$moduleName : string
$userId : int = null
Return values
bool

getActiveModules()

Gets active setting modules.

private static getActiveModules() : array<string|int, string>
Return values
array<string|int, string>

getPermittedModulesByUser()

Gets permitted modules by user ID.

private static getPermittedModulesByUser(int $userId) : array<string|int, string>
Parameters
$userId : int
Return values
array<string|int, string>

        

Search results