Methods | ||
---|---|---|
public
static
|
GetSaltPath(): string
|
# |
public
static
|
InitSalt()
|
# |
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($sEncodedValues): array
|
# |
public
static
|
GetModuleManager(): Manager
|
# |
public
static
|
GetModuleDecorator(string $sModuleName, int $iUser = null): Decorator
|
# |
public
static
|
GetModule(string $sModuleName): AbstractModule
|
# |
public
static
|
GetModules(): array
|
# |
public
static
|
ExecuteMethod(string $sMethodName, array $aParameters = []): mixed
|
# |
public
static
|
Cacher(): CacheClient
|
# |
public
static
|
UserSession(): UserSession
|
# |
public
static
&
|
GetSettings(): Settings
|
# |
public
static
&
|
GetConnection()
|
# |
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 $sFilePrefix = 'error-')
|
# |
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
|
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, StandardAuthAccount $oAccount = null, array $aParams = null, $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
|
validateCsrfToken(): bool
|
# |
public
static
|
authorise($sAuthToken = ''): User
|
# |
public
static
|
getAuthenticatedUserInfo($sAuthToken = '')
|
# |
public
static
|
validateAuthToken()
|
# |
public
static
|
getCookiePath()
|
# |
public
static
|
getCookieSecure()
|
# |
public
static
|
isHttps()
|
# |
public
static
|
getAuthenticatedUserId($sAuthToken = '')
|
# |
public
static
|
getAuthenticatedUserPublicId($sAuthToken = '')
|
# |
public
static
|
getAuthenticatedUser($sAuthToken = ''): User
|
# |
public
static
|
getAuthenticatedUserAuthToken()
|
# |
public
static
|
getUserUUIDById(int $iUserId): string
|
# |
public
static
|
getUserPublicIdById(int $iUserId): string
|
# |
public
static
|
getUserIdByPublicId(string $sPublicId): int
|
# |
public
static
|
getUserById($iUserId)
|
# |
public
static
|
getTenantById($iTenantId)
|
# |
public
static
|
setTenantName($sTenantName)
|
# |
public
static
|
setUserId($iUserId)
|
# |
public
static
|
setAuthToken($sAuthToken)
|
# |
public
static
|
getCurrentTenant()
|
# |
public
static
|
getTenantByWebDomain()
|
# |
public
static
|
getTenantName(): string
|
# |
public
static
|
GetDbConfig($DbType, $DbHost, $DbName, $DbPrefix, $DbLogin, $DbPassword)
|
# |
public
static
|
GetContainer(): Container
|
# |
public
static
|
CheckAccess(&$UserId)
|
# |
Properties | |||
---|---|---|---|
public
static
|
Manager
|
$oModuleManager
|
# |
public
static
|
array
|
$aModuleDecorators
|
# |
public
static
|
array
|
$aSecretWords = []
|
# |
public
static
|
bool
|
$bIsValid
|
# |
public
static
|
string
|
$sSalt
|
# |
public
static
|
array
|
$aI18N = null
|
# |
public
static
|
array
|
$aClientI18N = []
|
# |
public
static
|
bool
|
$bUseDbLog = false
|
# |
public
static
|
bool
|
$bDebug = false
|
# |
public
static
|
Container
|
$oContainer = null
|
# |