Bitrix API

Fuser

Table of Contents

Methods

__construct()  : mixed
add()  : Result
deleteOld()  : void
Delete fuserId over several days.
getCode()  : int
getId()  : int|null
Returns fuser Id.
getIdByUserId()  : false|int
Return fuserId for user.
getRegeneratedId()  : null|int
Returns fuser id after change code.
getUserIdById()  : int
Return user by fuserId.
handlerOnUserLogin()  : void
handlerOnUserLogout()  : mixed
refreshSessionCurrentId()  : int|null
update()  : Result

Methods

__construct()

public __construct() : mixed

add()

public static add([array<string|int, mixed> $options = [] ]) : Result
Parameters
$options : array<string|int, mixed> = []
Return values
Result

deleteOld()

Delete fuserId over several days.

public static deleteOld(int $days) : void
Parameters
$days : int

Interval.

getCode()

public static getCode() : int
Return values
int

getId()

Returns fuser Id.

public static getId([bool $skipCreate = false ]) : int|null
Parameters
$skipCreate : bool = false

Create, if not exist.

Return values
int|null

getIdByUserId()

Return fuserId for user.

public static getIdByUserId(int $userId) : false|int
Parameters
$userId : int

User Id.

Return values
false|int

getRegeneratedId()

Returns fuser id after change code.

public static getRegeneratedId() : null|int
Return values
null|int

getUserIdById()

Return user by fuserId.

public static getUserIdById(int $fuserId) : int
Parameters
$fuserId : int

Fuser Id.

Tags
throws
ArgumentException
Return values
int

handlerOnUserLogin()

public static handlerOnUserLogin(mixed $userId, array<string|int, mixed> $params) : void
Parameters
$userId : mixed
$params : array<string|int, mixed>

handlerOnUserLogout()

public static handlerOnUserLogout(mixed $userId) : mixed
Parameters
$userId : mixed

refreshSessionCurrentId()

public static refreshSessionCurrentId() : int|null
Return values
int|null

update()

public static update(int $id[, array<string|int, mixed> $options = [] ]) : Result
Parameters
$id : int
$options : array<string|int, mixed> = []
Return values
Result

        
On this page

Search results