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
__construct()
public
__construct() : mixed
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|nullvoteAsUser()
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