ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
AbstractBaseNotificationRenderer.php
Go to the documentation of this file.
2
3use ILIAS\GlobalScreen\Client\Notifications as ClientNotifications;
4use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
6use ILIAS\UI\Factory as UIFactory;
7
13{
14 use Hasher;
15
19 protected $ui_factory;
20
25 public function __construct(UIFactory $factory)
26 {
27 $this->ui_factory = $factory;
28 }
29
34 protected function buildCloseQuery(isItem $item) : string
35 {
36 return http_build_query([
37 ClientNotifications::MODE => ClientNotifications::MODE_CLOSED,
38 ClientNotifications::ITEM_ID => $this->hash($item->getProviderIdentification()->serialize()),
39 ]);
40 }
41}
An exception for terminatinating execution or to throw for unit testing.
This is how the factory for UI elements looks.
Definition: Factory.php:18
$factory
Definition: metadata.php:58