ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
AdministrativeNotificationRenderer.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
21 
22 use ILIAS\Data\URI;
23 use ILIAS\GlobalScreen\Client\Notifications as ClientNotifications;
27 
33 {
34  use Hasher;
35 
40  {
44  $system_info = $this->ui_factory->mainControls()->systemInfo($item->getTitle(), $item->getSummary())->withDenotation($item->getDenotation());
45 
46  if ($item->hasClosedCallable()) {
47  $url = rtrim(
48  ILIAS_HTTP_PATH,
49  "/"
50  ) . "/" . ClientNotifications::NOTIFY_ENDPOINT . "?" . $this->buildCloseQuery($item);
51  $system_info = $system_info->withDismissAction(new URI($url));
52  }
53 
54  return $system_info;
55  }
56 }
getNotificationComponentForItem(isItem $item)
Returns the UI Component for the past item.
A component is the most general form of an entity in the UI.
Definition: Component.php:13
The scope of this class is split ilias-conform URI&#39;s into components.
Definition: URI.php:17
Interface NotificationRenderer Every Notification should have a renderer, if you won&#39;t provide on in ...
$url