ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
AbstractBaseNotificationRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\GlobalScreen\Client\Notifications as ClientNotifications;
24use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
26use ILIAS\UI\Factory as UIFactory;
27
33{
34 use Hasher;
35
40 public function __construct(protected UIFactory $ui_factory)
41 {
42 }
43
48 protected function buildCloseQuery(isItem $item): string
49 {
50 return http_build_query([
51 ClientNotifications::MODE => ClientNotifications::MODE_CLOSED,
52 ClientNotifications::ITEM_ID => $this->hash($item->getProviderIdentification()->serialize()),
53 ]);
54 }
55}
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
__construct(protected UIFactory $ui_factory)
AbstractBaseNotificationRenderer constructor.
Interface NotificationRenderer Every Notification should have a renderer, if you won't provide on in ...