ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
StandardNotificationGroupRenderer.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\GlobalScreen\Scope\Notification\Factory\canHaveSymbol
;
25
use
ILIAS\GlobalScreen\Scope\Notification\Factory\isItem
;
26
use
ILIAS\GlobalScreen\Scope\Notification\Factory\StandardNotificationGroup
;
27
use
ILIAS\UI\Component\MainControls\Slate\Notification
;
28
33
class
StandardNotificationGroupRenderer
extends
AbstractBaseNotificationRenderer
implements
NotificationRenderer
34
{
39
public
function
getNotificationComponentForItem
(
isItem
$item):
Component
40
{
41
if
(!$item instanceof
StandardNotificationGroup
) {
42
throw
new \LogicException(
"item is not a StandardNotificationGroup"
);
43
}
44
45
$slate = $this->ui_factory->mainControls()->slate()->notification($item->getTitle(), []);
46
foreach
($item->getNotifications() as $standard_notification) {
47
$slate = $slate->withAdditionalEntry($standard_notification->getRenderer($this->ui_factory)
48
->getNotificationComponentForItem($standard_notification));
49
}
50
51
return
$slate;
52
}
53
}
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer\AbstractBaseNotificationRenderer
Class AbstractBaseNotificationRenderer.
Definition:
AbstractBaseNotificationRenderer.php:33
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer\StandardNotificationGroupRenderer
Class StandardNotificationGroupRenderer.
Definition:
StandardNotificationGroupRenderer.php:34
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer\StandardNotificationGroupRenderer\getNotificationComponentForItem
getNotificationComponentForItem(isItem $item)
Definition:
StandardNotificationGroupRenderer.php:39
ILIAS\GlobalScreen\Scope\Notification\Factory\StandardNotificationGroup
Class StandardNotificationGroup Groups a set of Notification.
Definition:
StandardNotificationGroup.php:33
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:36
ILIAS\GlobalScreen\Scope\Notification\Factory\canHaveSymbol
Interface canHaveSymbol.
Definition:
canHaveSymbol.php:30
ILIAS\GlobalScreen\Scope\Notification\Factory\isItem
Interface isItem.
Definition:
isItem.php:32
ILIAS\UI\Component\Component
A component is the most general form of an entity in the UI.
Definition:
Component.php:28
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
Definition:
AbstractBaseNotificationRenderer.php:21
ILIAS\UI\Component
components
ILIAS
GlobalScreen
src
Scope
Notification
Collector
Renderer
StandardNotificationGroupRenderer.php
Generated on Sat Oct 18 2025 23:03:07 for ILIAS by
1.9.4 (using
Doxyfile
)