ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
Notification.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\UI\Component\Item;
22 
26 
31 interface Notification extends Item
32 {
39  public function withAdditionalContent(Legacy $component): Notification;
40 
44  public function getAdditionalContent(): ?Legacy;
45 
51  public function withCloseAction(string $url): Notification;
52 
56  public function getCloseAction(): ?string;
57 
63  public function withAggregateNotifications(array $aggregate_notifications): Notification;
64 
70  public function getAggregateNotifications(): array;
71 
75  public function withLeadIcon(Icon $lead): Notification;
76 
81  public function getLeadIcon(): Icon;
82 
86  public function withActions(DropdownStandard $actions): Notification;
87 
91  public function getActions(): ?DropdownStandard;
92 }
getActions()
Get the actions of the item.
getAggregateNotifications()
Get the list of Notification Items, this Notification Item aggregates or an empty list...
getAdditionalContent()
Get the additional content of the item or null.
This describes how an icon could be modified during construction of UI.
Definition: Icon.php:28
withAggregateNotifications(array $aggregate_notifications)
Get an Notification Item like this, but with a set of Notifications, this Notification Item will aggr...
withActions(DropdownStandard $actions)
Create a new appointment item with a set of actions to perform on it.
withAdditionalContent(Legacy $component)
Get a Notification Item like this but with additional content bellow the description.
Common interface to all items.
Definition: Item.php:31
withLeadIcon(Icon $lead)
Set icon as lead.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Factory.php:21
getCloseAction()
Get the url attached to this Notification Item.
$url
withCloseAction(string $url)
Get an Item like this with an url to consulted async, when to close button is pressed.