ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
StandardNotificationGroupRenderer.php
Go to the documentation of this file.
1
<?
php
2
19
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
}
php
An exception for terminatinating execution or to throw for unit testing.
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\Component
A component is the most general form of an entity in the UI.
Definition:
Component.php:14
ILIAS\UI\Component\MainControls\Slate\Notification
Notifications Slates are Slates restricted to only containing Notification Items.
Definition:
Notification.php:12
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer
Definition:
AbstractBaseNotificationRenderer.php:20
ILIAS
Class ChatMainBarProvider \MainMenu\Provider.
UI
Class Factory.
src
GlobalScreen
Scope
Notification
Collector
Renderer
StandardNotificationGroupRenderer.php
Generated on Fri Oct 3 2025 21:01:10 for ILIAS by
1.9.4 (using
Doxyfile
)