◆ __construct()
Definition at line 38 of file NotificationsPushProvider.php.
39 {
42 $this->config->setHandlerParam(
'setting.user_pref',
$provider->getIdentifier());
43 $this->config->setHandlerParam('setting.ttl', (string) $this::TTL);
44 }
This is the lowest common denominator of all popular browsers.
References $provider.
◆ push()
ILIAS\Notifications\Provider\NotificationsPushProvider::push |
( |
ilObjUser |
$user, |
|
|
string |
$title, |
|
|
string |
$description = '' , |
|
|
?ilNotificationLink |
$link = null |
|
) |
| |
Definition at line 46 of file NotificationsPushProvider.php.
46 : bool
47 {
48 $notification = new ilNotificationObject($this->config, $user);
49 $notification->title = $title;
50 $notification->shortDescription = $description;
51 $notification->links = $link ? [$link] : [];
52 $this->handler->notify($notification);
54 }
References ILIAS\Notifications\Model\Push\SUCCEEDED.
◆ $config
◆ $handler
◆ TTL
const int ILIAS\Notifications\Provider\NotificationsPushProvider::TTL = 60 |
|
protected |
The documentation for this class was generated from the following file: