ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilNotificationObject.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
23 use ilNotification;
24 use ilObjUser;
25 
30 {
32  public ilObjUser $user;
33  public string $title = '';
34  public string $shortDescription = '';
35  public string $longDescription = '';
39  public array $links = [];
40  public string $iconPath = '';
41  public array $handlerParams = [];
42 
43  public function __construct(ilNotificationConfig $baseNotification, ilObjUser $user)
44  {
45  $this->baseNotification = $baseNotification;
46  $this->user = $user;
47  $this->handlerParams = $this->baseNotification->getHandlerParams();
48  }
49 
53  public function __sleep(): array
54  {
55  return ['title', 'shortDescription', 'longDescription', 'iconPath', 'links', 'handlerParams'];
56  }
57 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilNotificationConfig $baseNotification, ilObjUser $user)