Documentation

EventSourceComponent extends Injectable
in package

Table of Contents

Methods

checkNotifications()  : mixed
createGritter()  : mixed
getUser()  : mixed

Methods

checkNotifications()

public checkNotifications(int $userId, int $since) : mixed
Parameters
$userId : int
$since : int

createGritter()

public static createGritter(string|array<string|int, mixed> $title, string|array<string|int, mixed> $message, int $userId[, string $messageType = 'success' ]) : mixed
Parameters
$title : string|array<string|int, mixed>

translation key as string or an array which has the translation key as the first element and additional parameter as the second in an array

$message : string|array<string|int, mixed>

translation key as string or an array which has the translation key as the first element and additional parameter as the second in an array

$userId : int

the id of the user who will be notified

$messageType : string = 'success'

        
On this page

Search results