Methods | ||
---|---|---|
public
static
|
GetSaltPath(): string
|
# |
public
static
|
GetEncryptionKeyPath(): string
|
# |
public
static
|
InitEncryptionKey()
|
# |
public
static
|
GetUserSession()
|
# |
public
static
|
SetUserSession($aUserSession)
|
# |
public
static
|
GrantAdminPrivileges()
|
# |
public
static
|
UseDbLogs($bUseDbLogs = false)
|
# |
public
static
|
Init(bool $bGrantAdminPrivileges = false)
|
# |
public
static
|
skipCheckUserRole(bool $bSkip): bool
|
# |
public
static
|
accessCheckIsSkipped(): bool
|
# |
public
static
|
checkUserAccess($oUser)
|
# |
public
static
|
AddSecret(string $sWord): void
|
# |
public
static
|
EncodeKeyValues(array $aValues): string
|
# |
public
static
|
DecodeKeyValues(string $sEncryptedValues): array
|
# |
public
static
|
GetModuleManager(): Manager
|
# |
public
static
|
GetModuleDecorator(string $sModuleName): Decorator
|
# |
public
static
|
GetModule(string $sModuleName): AbstractModule
|
# |
public
static
|
IsModuleLoaded(string $sModuleName): bool
|
# |
public
static
|
GetModules(): array
|
# |
public
static
|
ExecuteMethod(string $sMethodName, array $aParameters = []): mixed
|
# |
public
static
|
Cacher(): CacheClient
|
# |
public
static
|
UserSession(): UserSession
|
# |
public
static
&
|
GetSettings($force = false): Settings
|
# |
public
static
|
UpdateSettings(): bool
|
# |
public
static
|
GetPDO(): PDO|false
|
# |
public
static
|
IsMobileApplication(): bool
|
# |
public
static
|
Location(string $sNewLocation)
|
# |
public
static
|
Location2(string $sNewLocation)
|
# |
public
static
|
LogEvent(string $sDesc, string $sModuleName = '')
|
# |
public
static
|
LogObject(mixed $mObject, int $iLogLevel = LogLevel::Full, string $sFilePrefix = '')
|
# |
public
static
|
LogException(Exception $mObject, int $iLogLevel = LogLevel::Error, string|null $sFilePrefix = null)
|
# |
public
static
|
GetLogFileName(string $sFilePrefix = '', $iTimestamp = 0): string
|
# |
public
static
|
GetLogFileDir()
|
# |
public
static
|
SystemLogger(): Logger
|
# |
public
static
|
Log(string $sDesc, int $iLogLevel = LogLevel::Full, string $sFilePrefix = '')
|
# |
public
static
|
LogOnly(string $sDesc, string $sLogFile)
|
# |
public
static
|
LogSql($query)
|
# |
public
static
|
ClearLog($sFileFullPath)
|
# |
public
static
|
RemoveSeparateLogs()
|
# |
public
static
|
removeOldLogs()
|
# |
public
static
|
GetLoggerGuid()
|
# |
public
static
|
RootPath(): string
|
# |
public
static
|
WebMailPath(): string
|
# |
public
static
|
GetVendorPath(): string
|
# |
public
static
|
VersionFull(): string
|
# |
public
static
|
Version(): string
|
# |
public
static
|
VersionJs(): string
|
# |
public
static
|
DataPath(): string
|
# |
public
static
|
IsValid(): bool
|
# |
public
static
|
GenerateSsoToken(string $sEmail, string $sPassword, string $sLogin = ''): string
|
# |
public
static
|
convertIniToLang(string $sLangFile): array
|
# |
public
static
|
processTranslateParams(mixed $mLang, string $sData, array|null $aParams = null, $iPlural = null): array
|
# |
public
static
|
SetLanguage(string $sLanguage)
|
# |
public
static
|
GetLanguage(bool $bForNewUser = false): string
|
# |
public
static
|
ClientI18N(string $sData, array $aParams = null, mixed $iPluralCount = null): string
|
# |
public
static
|
getPlural($sLang = '', $iNumber = 0)
|
# |
public
static
|
I18N(string $sData, array $aParams = null, $sForceCustomInitialisationLang = ''): string
|
# |
public
static
|
checkUserRoleIsAtLeast(int $iRole)
|
# |
public
static
|
getAuthTokenFromHeaders()
|
# |
public
static
|
requireAdminAuth()
|
# |
public
static
|
getDeviceIdFromHeaders()
|
# |
public
static
|
getAuthToken(): string
|
# |
public
static
|
authorise($sAuthToken = ''): User
|
# |
public
static
|
getAuthenticatedUserInfo($sAuthToken = '')
|
# |
public
static
|
validateAuthToken($authToken = null)
|
# |
public
static
|
getCookiePath()
|
# |
public
static
|
getCookieSecure()
|
# |
public
static
|
isHttps()
|
# |
public
static
|
getAuthenticatedUserId($sAuthToken = '')
|
# |
public
static
|
getAuthenticatedUserPublicId($sAuthToken = '')
|
# |
public
static
|
unsetAuthenticatedUser(): void
|
# |
public
static
|
getAuthenticatedUser(string $sAuthToken = '', bool $bForce = false): User
|
# |
public
static
|
getAuthenticatedUserAuthToken()
|
# |
public
static
|
getUserUUIDById(int $iUserId): string
|
# |
public
static
|
getUserPublicIdById(int $iUserId): string
|
# |
public
static
|
getUserIdByPublicId(string $sPublicId): int|false
|
# |
public
static
|
getUserByPublicId($sPublicId, $bForce = false)
|
# |
public
static
|
getUserById($iUserId, $bForce = false)
|
# |
public
static
|
removeUserFromCache($iUserId)
|
# |
public
static
|
getTenantById($iTenantId, $bForce = false)
|
# |
public
static
|
getTenantByWebDomain()
|
# |
public
static
|
removeTenantFromCache($iTenantId)
|
# |
public
static
|
setTenantName($sTenantName)
|
# |
public
static
|
setUserId($iUserId)
|
# |
public
static
|
setAuthToken($sAuthToken)
|
# |
public
static
|
getCurrentTenant()
|
# |
public
static
|
getTenantName(): string
|
# |
public
static
|
GetDbConfig($DbType, $DbHost, $DbName, $DbPrefix, $DbLogin, $DbPassword)
|
# |
public
static
|
CreateContainer($force = false)
|
# |
public
static
|
GetContainer($force = false): Container
|
# |
public
static
|
CheckAccess(&$UserId)
|
# |
public
static
|
setCookie($name, $value, $expires = 0, $httpOnly = true, $sameSite = 'Strict')
|
# |
public
static
|
setAuthTokenCookie($authToken)
|
# |
public
static
|
unsetAuthTokenCookie()
|
# |
Properties | |||
---|---|---|---|
public
static
|
Manager
|
$oModuleManager
|
# |
public
static
|
array
|
$aModuleDecorators
|
# |
public
static
|
array
|
$aSecretWords = []
|
# |
public
static
|
bool
|
$bIsValid
|
# |
public
static
|
string
|
$sSalt
|
# |
public
static
|
string
|
$sEncryptionKey
|
# |
public
static
|
array
|
$aI18N = null
|
# |
public
static
|
array
|
$aClientI18N = []
|
# |
public
static
|
bool
|
$bUseDbLog = false
|
# |
public
static
|
bool
|
$bDebug = false
|
# |
public
static
|
Container
|
$oContainer = null
|
# |