ILIAS  release_7 Revision v7.30-3-g800a261c036
AbstractBaseNotificationRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
21
22use ILIAS\GlobalScreen\Client\Notifications as ClientNotifications;
23use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
25use ILIAS\UI\Factory as UIFactory;
26
32{
33 use Hasher;
34
38 protected $ui_factory;
39
44 public function __construct(UIFactory $factory)
45 {
46 $this->ui_factory = $factory;
47 }
48
53 protected function buildCloseQuery(isItem $item) : string
54 {
55 return http_build_query([
56 ClientNotifications::MODE => ClientNotifications::MODE_CLOSED,
57 ClientNotifications::ITEM_ID => $this->hash($item->getProviderIdentification()->serialize()),
58 ]);
59 }
60}
An exception for terminatinating execution or to throw for unit testing.
Interface NotificationRenderer Every Notification should have a renderer, if you won't provide on in ...
This is how the factory for UI elements looks.
Definition: Factory.php:18
$factory
Definition: metadata.php:58