3 declare(strict_types=1);
51 $this->lead_icon = $icon;
61 $clone->additional_content = $additional_content;
70 return $this->additional_content;
79 $clone->close_action =
$url;
88 return $this->close_action;
99 $this->checkArgListElements(
"Notification Item", $aggregate_notifications, $classes);
100 $clone = clone $this;
101 $clone->aggregate_notifications = $aggregate_notifications;
110 return $this->aggregate_notifications;
118 $clone = clone $this;
119 $clone->lead_icon = $icon;
128 return $this->lead_icon;
136 $clone = clone $this;
137 $clone->actions = $actions;
146 return $this->actions;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
withCloseAction(string $url)
Get an Item like this with an url to consulted async, when to close button is pressed.With this url, information may be stored persistently in the DB without interrupting the workflow of the user (e.g. setting a flag, that the message was consulted).
This describes how an icon could be modified during construction of UI.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getAdditionalContent()
Get the additional content of the item or null.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
withAdditionalContent(Legacy $additional_content)
Get a Notification Item like this but with additional content bellow the description.Note this should only be used, if the content section needs to hold legacy content that currently does not have a place in the UI components.
This describes commonalities between all types of Dropdowns.
Legacy $additional_content
__construct($title, Icon $icon)
array $aggregate_notifications
withActions(C\Dropdown\Standard $actions)
getLeadIcon()
Get icon as lead.Note that Notifications only accept Icons as lead, this is different from the standa...
Common interface to all items.
withAggregateNotifications(array $aggregate_notifications)
Get an Notification Item like this, but with a set of Notifications, this Notification Item will aggr...
withLeadIcon(Icon $icon)
Set icon as lead.
getCloseAction()
Get the url attached to this Notification Item.
__construct(Container $dic, ilPlugin $plugin)
getActions()
Get the actions of the item.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getAggregateNotifications()
Get the list of Notification Items, this Notification Item aggregates or an empty list...