Documentation

SSEServer extends Server
in package

Table of Contents

Methods

__construct()  : mixed
dispatchEvent()  : int|null
fetchLastEvent()  : array<string|int, mixed>|null
fetchNewEvents()  : iterable<string|int, mixed>

Methods

__construct()

public __construct(string $tableName, string $dbName, Model $model) : mixed
Parameters
$tableName : string
$dbName : string
$model : Model

dispatchEvent()

public dispatchEvent(mixed $type, mixed $data[, mixed $time = null ][, mixed $ip = null ]) : int|null
Parameters
$type : mixed
$data : mixed
$time : mixed = null
$ip : mixed = null
Return values
int|null

fetchLastEvent()

public fetchLastEvent() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

fetchNewEvents()

public fetchNewEvents(mixed $lastId) : iterable<string|int, mixed>
Parameters
$lastId : mixed
Return values
iterable<string|int, mixed>

        
On this page

Search results