ILIAS  release_8 Revision v8.24
AbstractBaseNotificationRenderer.php
Go to the documentation of this file.
1<?php
2
3declare(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
35 protected UIFactory $ui_factory;
36
41 public function __construct(UIFactory $factory)
42 {
43 $this->ui_factory = $factory;
44 }
45
50 protected function buildCloseQuery(isItem $item): string
51 {
52 return http_build_query([
53 ClientNotifications::MODE => ClientNotifications::MODE_CLOSED,
54 ClientNotifications::ITEM_ID => $this->hash($item->getProviderIdentification()->serialize()),
55 ]);
56 }
57}
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:38
$factory
Definition: metadata.php:75
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...