ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
AdministrativeNotificationRenderer.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer
;
22
23
use
ILIAS\UI\Component\Component
;
24
use
ILIAS\Data\URI
;
25
use
ILIAS\GlobalScreen\Client\Notifications
as ClientNotifications;
26
use
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher
;
27
use
ILIAS\GlobalScreen\Scope\Notification\Factory\isItem
;
28
33
class
AdministrativeNotificationRenderer
extends
AbstractBaseNotificationRenderer
implements
NotificationRenderer
34
{
35
use
Hasher
;
36
40
public
function
getNotificationComponentForItem
(
isItem
$item):
Component
41
{
45
$system_info = $this->ui_factory->mainControls()->systemInfo($item->getTitle(), $item->getSummary())->withDenotation($item->getDenotation());
46
47
if
($item->hasClosedCallable()) {
48
$url
= rtrim(
49
ILIAS_HTTP_PATH,
50
"/"
51
) .
"/"
. ClientNotifications::NOTIFY_ENDPOINT .
"?"
. $this->
buildCloseQuery
($item);
52
$system_info = $system_info->withDismissAction(
new
URI
(
$url
));
53
}
54
55
return
$system_info;
56
}
57
}
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer\NotificationRenderer\getNotificationComponentForItem
getNotificationComponentForItem(isItem $item)
Returns the UI Component for the past item.
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer
Definition:
AbstractBaseNotificationRenderer.php:21
isItem
ILIAS\UI\Component
Component
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer\AbstractBaseNotificationRenderer\buildCloseQuery
buildCloseQuery(isItem $item)
Definition:
AbstractBaseNotificationRenderer.php:48
$url
$url
Definition:
shib_logout.php:68
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer\AdministrativeNotificationRenderer
Class AdministrativeNotificationRenderer.
Definition:
AdministrativeNotificationRenderer.php:33
Hasher
Hasher
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer\NotificationRenderer
Interface NotificationRenderer Every Notification should have a renderer, if you won't provide on in ...
Definition:
NotificationRenderer.php:35
ILIAS\Data\URI
GuzzleHttp\Client\Notifications
Definition:
Notifications.php:36
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer\AbstractBaseNotificationRenderer
Class AbstractBaseNotificationRenderer.
Definition:
AbstractBaseNotificationRenderer.php:32
ILIAS\GlobalScreen\Scope\Notification\Factory\isItem
Interface isItem.
Definition:
isItem.php:31
components
ILIAS
GlobalScreen
src
Scope
Notification
Collector
Renderer
AdministrativeNotificationRenderer.php
Generated on Wed Sep 3 2025 23:03:08 for ILIAS by
1.8.13 (using
Doxyfile
)