ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilNotificationObject.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use ilObjUser;
25
30{
31 public string $title = '';
32 public string $shortDescription = '';
33 public string $longDescription = '';
34
35 public ?string $action = null;
37 public array $links = [];
38 public string $iconPath = '';
40 public array $handlerParams = [];
41
42 public function __construct(public ilNotificationConfig $baseNotification, public ilObjUser $user)
43 {
44 $this->handlerParams = $this->baseNotification->getHandlerParams();
45 }
46
50 public function __sleep(): array
51 {
52 return ['title', 'shortDescription', 'longDescription', 'iconPath', 'links', 'handlerParams'];
53 }
54}
__construct(public ilNotificationConfig $baseNotification, public ilObjUser $user)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
User class.