19 declare(strict_types=1);
51 $this->lead_icon = $icon;
79 $clone->close_action =
$url;
99 $this->checkArgListElements(
"Notification Item", $aggregate_notifications, $classes);
100 $clone = clone $this;
118 $clone = clone $this;
119 $clone->lead_icon = $icon;
136 $clone = clone $this;
C Dropdown Standard $actions
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).
withAdditionalContent(Content $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.
getAdditionalContent()
Get the additional content of the item or null.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
This describes commonalities between all types of Dropdowns.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__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)
Content $additional_content
getActions()
Get the actions of the item.
getAggregateNotifications()
Get the list of Notification Items, this Notification Item aggregates or an empty list...