Bitrix API

SessionManager

Message sessions service.

Table of Contents

Methods

__construct()  : mixed
create()  : Session|null
Creates new instance of OL session.
voteAsUser()  : bool
The vote of the user.

Methods

create()

Creates new instance of OL session.

public create([array<string|int, mixed> $config = [] ]) : Session|null
Parameters
$config : array<string|int, mixed> = []

Session config parameters.

Return values
Session|null

voteAsUser()

The vote of the user.

public voteAsUser(int $sessionId, string $action[, int|null $userId = null ]) : bool
Parameters
$sessionId : int
$action : string
$userId : int|null = null
Return values
bool

        
On this page

Search results