ILIAS
release_8 Revision v8.24
◀ ilDoc Overview
StandardNotificationGroupRenderer.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
20
namespace
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer
;
21
22
use
ILIAS\GlobalScreen\Scope\Notification\Factory\canHaveSymbol
;
23
use
ILIAS\GlobalScreen\Scope\Notification\Factory\isItem
;
24
use
ILIAS\GlobalScreen\Scope\Notification\Factory\StandardNotificationGroup
;
25
use
ILIAS\UI\Component\MainControls\Slate\Notification
;
26
31
class
StandardNotificationGroupRenderer
extends
AbstractBaseNotificationRenderer
implements
NotificationRenderer
32
{
37
public
function
getNotificationComponentForItem
(
isItem
$item): \
ILIAS
\
UI
\
Component
\
Component
38
{
39
if
(!$item instanceof
StandardNotificationGroup
) {
40
throw
new \LogicException(
"item is not a StandardNotificationGroup"
);
41
}
42
43
$slate = $this->ui_factory->mainControls()->slate()->notification($item->getTitle(), []);
44
foreach
($item->getNotifications() as $standard_notification) {
45
$slate = $slate->withAdditionalEntry($standard_notification->getRenderer($this->ui_factory)
46
->getNotificationComponentForItem($standard_notification));
47
}
48
49
return
$slate;
50
}
51
}
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer\AbstractBaseNotificationRenderer
Class AbstractBaseNotificationRenderer.
Definition:
AbstractBaseNotificationRenderer.php:32
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer\StandardNotificationGroupRenderer
Class StandardNotificationGroupRenderer.
Definition:
StandardNotificationGroupRenderer.php:32
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer\StandardNotificationGroupRenderer\getNotificationComponentForItem
getNotificationComponentForItem(isItem $item)
Definition:
StandardNotificationGroupRenderer.php:37
ILIAS\GlobalScreen\Scope\Notification\Factory\StandardNotificationGroup
Class StandardNotificationGroup Groups a set of Notification.
Definition:
StandardNotificationGroup.php:32
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\GlobalScreen\Scope\Notification\Factory\canHaveSymbol
Interface canHaveSymbol.
Definition:
canHaveSymbol.php:29
ILIAS\GlobalScreen\Scope\Notification\Factory\isItem
Interface isItem.
Definition:
isItem.php:31
ILIAS\UI\Component\MainControls\Slate\Notification
Notifications Slates are Slates restricted to only containing Notification Items.
Definition:
Notification.php:29
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
AbstractBaseNotificationRenderer.php:20
ILIAS\UI\Component
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS
Class ChatMainBarProvider \MainMenu\Provider.
UI
Class Factory.
src
GlobalScreen
Scope
Notification
Collector
Renderer
StandardNotificationGroupRenderer.php
Generated on Mon Nov 3 2025 22:02:09 for ILIAS by
1.9.4 (using
Doxyfile
)