ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Notification.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\UI\Component\Item;
22 
26 
31 interface Notification extends Item
32 {
39  public function withAdditionalContent(Content $component): Notification;
40 
44  public function getAdditionalContent(): ?Content;
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.
$url
Definition: shib_logout.php:66
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.
Common interface to all items.
Definition: Item.php:31
withLeadIcon(Icon $lead)
Set icon as lead.
withAdditionalContent(Content $component)
Get a Notification Item like this but with additional content bellow the description.
getCloseAction()
Get the url attached to this Notification Item.
withCloseAction(string $url)
Get an Item like this with an url to consulted async, when to close button is pressed.