1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Fuser

Открытые члены

 __construct ()

Открытые статические члены

static getId ($skipCreate=false)
static refreshSessionCurrentId ()
static getCode ()
static getIdByUserId ($userId)
static getUserIdById ($fuserId)
static deleteOld ($days)
static handlerOnUserLogin ($userId, array $params)
static handlerOnUserLogout ($userId)

Защищенные статические члены

static isEncodeCookie ()
static isSecureCookie ()
static isSaveAnonymousUserCookie ()
static getIdFromSession ()
static setIdToSession (int $id)
static clearSession ()
static getIdFromCookie ()
static setIdToCookie (string $id)
static clearCookie ()
static getFilterFromCookie (?string $cookie)
static getIdByFilter (array $filter)
static getIdByCurrentUser ()
static generateCode ()
static save (?int $id, array $fields)

Защищенные данные

const SESSION_USER_ID = 'SALE_USER_ID'
const COOKIE_USER_ID = 'SALE_UID'

Подробное описание

См. определение в файле fuser.php строка 17

Конструктор(ы)

◆ __construct()

__construct ( )

См. определение в файле fuser.php строка 22

Методы

◆ clearCookie()

clearCookie ( )
staticprotected

См. определение в файле fuser.php строка 356

◆ clearSession()

clearSession ( )
staticprotected

См. определение в файле fuser.php строка 322

◆ deleteOld()

deleteOld ( $days)
static

Delete fuserId over several days.

Аргументы
int$daysInterval.
Возвращает
void

См. определение в файле fuser.php строка 205

◆ generateCode()

generateCode ( )
staticprotected

См. определение в файле fuser.php строка 435

◆ getCode()

getCode ( )
static
Возвращает
int

См. определение в файле fuser.php строка 97

◆ getFilterFromCookie()

getFilterFromCookie ( ?string $cookie)
staticprotected

См. определение в файле fuser.php строка 361

◆ getId()

getId ( $skipCreate = false)
static

Returns fuser Id.

Аргументы
bool$skipCreateCreate, if not exist.
Возвращает
int|null

См. определение в файле fuser.php строка 33

◆ getIdByCurrentUser()

getIdByCurrentUser ( )
staticprotected

См. определение в файле fuser.php строка 405

◆ getIdByFilter()

getIdByFilter ( array $filter)
staticprotected

См. определение в файле fuser.php строка 389

◆ getIdByUserId()

getIdByUserId ( $userId)
static

Return fuserId for user.

Аргументы
int$userIdUser Id.
Возвращает
false|int

См. определение в файле fuser.php строка 151

◆ getIdFromCookie()

getIdFromCookie ( )
staticprotected

См. определение в файле fuser.php строка 332

◆ getIdFromSession()

getIdFromSession ( )
staticprotected

См. определение в файле fuser.php строка 284

◆ getUserIdById()

getUserIdById ( $fuserId)
static

Return user by fuserId.

Аргументы
int$fuserIdFuser Id.
Возвращает
int
Исключения
Main

ArgumentException

См. определение в файле fuser.php строка 177

◆ handlerOnUserLogin()

handlerOnUserLogin ( $userId,
array $params )
static

См. определение в файле fuser.php строка 587

◆ handlerOnUserLogout()

handlerOnUserLogout ( $userId)
static

См. определение в файле fuser.php строка 653

◆ isEncodeCookie()

isEncodeCookie ( )
staticprotected

См. определение в файле fuser.php строка 266

◆ isSaveAnonymousUserCookie()

isSaveAnonymousUserCookie ( )
staticprotected

См. определение в файле fuser.php строка 279

◆ isSecureCookie()

isSecureCookie ( )
staticprotected

См. определение в файле fuser.php строка 271

◆ refreshSessionCurrentId()

refreshSessionCurrentId ( )
static

См. определение в файле fuser.php строка 81

◆ save()

save ( ?int $id,
array $fields )
staticprotected

См. определение в файле fuser.php строка 569

◆ setIdToCookie()

setIdToCookie ( string $id)
staticprotected

См. определение в файле fuser.php строка 339

◆ setIdToSession()

setIdToSession ( int $id)
staticprotected

См. определение в файле fuser.php строка 308

Поля

◆ COOKIE_USER_ID

const COOKIE_USER_ID = 'SALE_UID'
protected

См. определение в файле fuser.php строка 20

◆ SESSION_USER_ID

const SESSION_USER_ID = 'SALE_USER_ID'
protected

См. определение в файле fuser.php строка 19


Объявления и описания членов класса находятся в файле: