ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Notification.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25use ILIAS\UI\Component\Dropdown\Standard as DropdownStandard;
26
31interface 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}
This describes a Standard Dropdown.
Definition: Standard.php:27
Common interface to all items.
Definition: Item.php:32
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.
getCloseAction()
Get the url attached to this Notification Item.
getActions()
Get the actions of the item.
withCloseAction(string $url)
Get an Item like this with an url to consulted async, when to close button is pressed.
withAdditionalContent(Content $component)
Get a Notification Item like this but with additional content bellow the description.
withActions(DropdownStandard $actions)
Create a new appointment item with a set of actions to perform on it.
withLeadIcon(Icon $lead)
Set icon as lead.
withAggregateNotifications(array $aggregate_notifications)
Get an Notification Item like this, but with a set of Notifications, this Notification Item will aggr...
This describes how an icon could be modified during construction of UI.
Definition: Icon.php:29
$url
Definition: shib_logout.php:68