CAccess
Table of Contents
Constants
- CACHE_DIR = "access_codes"
- CHECK_CACHE_DIR = "access_check"
Methods
- __construct() : mixed
- AddCode() : mixed
- AjaxRequest() : mixed
- ClearCache() : mixed
- CmpNames() : mixed
- GetFormHtml() : mixed
- GetLastRecentlyUsed() : mixed
- GetNames() : mixed
- GetProviderNames() : mixed
- GetProviders() : mixed
- GetUserCodes() : mixed
- GetUserCodesArray() : mixed
- OnUserDelete() : mixed
- RecalculateForProvider() : mixed
- RecalculateForUser() : mixed
- RemoveCode() : mixed
- SaveLastRecentlyUsed() : mixed
- UpdateCodes() : mixed
Constants
CACHE_DIR
public
mixed
CACHE_DIR
= "access_codes"
CHECK_CACHE_DIR
public
mixed
CHECK_CACHE_DIR
= "access_check"
Methods
__construct()
public
__construct([mixed $arParams = false ]) : mixed
Parameters
- $arParams : mixed = false
AddCode()
public
static AddCode(int $userId, string $provider, string $code) : mixed
Parameters
- $userId : int
- $provider : string
- $code : string
AjaxRequest()
public
AjaxRequest(mixed $arParams) : mixed
Parameters
- $arParams : mixed
ClearCache()
public
static ClearCache(int $userId) : mixed
Parameters
- $userId : int
-
User ID.
CmpNames()
public
static CmpNames(mixed $a, mixed $b) : mixed
Parameters
- $a : mixed
- $b : mixed
GetFormHtml()
public
GetFormHtml() : mixed
GetLastRecentlyUsed()
public
static GetLastRecentlyUsed(mixed $provider) : mixed
Parameters
- $provider : mixed
GetNames()
public
GetNames(mixed $arCodes[, mixed $bSort = false ]) : mixed
Parameters
- $arCodes : mixed
- $bSort : mixed = false
GetProviderNames()
public
GetProviderNames() : mixed
GetProviders()
public
static GetProviders() : mixed
GetUserCodes()
public
static GetUserCodes(mixed $USER_ID[, mixed $arFilter = [] ][, bool $updateCodes = true ]) : mixed
Parameters
- $USER_ID : mixed
- $arFilter : mixed = []
- $updateCodes : bool = true
GetUserCodesArray()
public
static GetUserCodesArray(mixed $USER_ID[, mixed $arFilter = [] ]) : mixed
Parameters
- $USER_ID : mixed
- $arFilter : mixed = []
OnUserDelete()
public
static OnUserDelete(mixed $USER_ID) : mixed
Parameters
- $USER_ID : mixed
RecalculateForProvider()
public
static RecalculateForProvider(mixed $provider) : mixed
Parameters
- $provider : mixed
RecalculateForUser()
public
static RecalculateForUser(mixed $userId, mixed $provider[, DateTime $dateCheck = null ]) : mixed
Parameters
- $userId : mixed
- $provider : mixed
- $dateCheck : DateTime = null
RemoveCode()
public
static RemoveCode(int $userId, string $provider, string $code) : mixed
Parameters
- $userId : int
- $provider : string
- $code : string
SaveLastRecentlyUsed()
public
static SaveLastRecentlyUsed(mixed $arLRU) : mixed
Parameters
- $arLRU : mixed
UpdateCodes()
public
UpdateCodes([mixed $arParams = false ]) : mixed
Parameters
- $arParams : mixed = false