ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
StandardNotificationGroupRenderer.php
Go to the documentation of this file.
1
<?
php
namespace
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer
;
2
3
use
ILIAS\GlobalScreen\Scope\Notification\Factory\canHaveSymbol
;
4
use ILIAS\GlobalScreen\Scope\Notification\Factory\hasActions;
5
use
ILIAS\GlobalScreen\Scope\Notification\Factory\isItem
;
6
use
ILIAS\GlobalScreen\Scope\Notification\Factory\StandardNotificationGroup
;
7
use
ILIAS\UI\Component\MainControls\Slate\Notification
;
8
14
class
StandardNotificationGroupRenderer
extends
AbstractBaseNotificationRenderer
implements
NotificationRenderer
15
{
16
22
public
function
getNotificationComponentForItem
(
isItem
$item)
23
{
24
if
(!$item instanceof
StandardNotificationGroup
) {
25
throw
new \LogicException(
"item is not a StandardNotificationGroup"
);
26
}
27
28
$slate = $this->ui_factory->mainControls()->slate()->notification($item->getTitle(), []);
29
foreach
($item->getNotifications() as $standard_notification) {
30
$slate = $slate->withAdditionalEntry($standard_notification->getRenderer($this->ui_factory)
31
->getNotificationComponentForItem($standard_notification));
32
}
33
34
return
$slate;
35
}
36
}
php
An exception for terminatinating execution or to throw for unit testing.
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer\AbstractBaseNotificationRenderer
Class AbstractBaseNotificationRenderer.
Definition:
AbstractBaseNotificationRenderer.php:13
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer\StandardNotificationGroupRenderer
Class StandardNotificationGroupRenderer.
Definition:
StandardNotificationGroupRenderer.php:15
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer\StandardNotificationGroupRenderer\getNotificationComponentForItem
getNotificationComponentForItem(isItem $item)
Definition:
StandardNotificationGroupRenderer.php:22
ILIAS\GlobalScreen\Scope\Notification\Factory\StandardNotificationGroup
Class StandardNotificationGroup.
Definition:
StandardNotificationGroup.php:15
ILIAS\GlobalScreen\Scope\Notification\Collector\Renderer\NotificationRenderer
Interface NotificationRenderer.
Definition:
NotificationRenderer.php:16
ILIAS\GlobalScreen\Scope\Notification\Factory\canHaveSymbol
Interface canHaveSymbol.
Definition:
canHaveSymbol.php:11
ILIAS\GlobalScreen\Scope\Notification\Factory\isItem
Interface isItem.
Definition:
isItem.php:12
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:1
src
GlobalScreen
Scope
Notification
Collector
Renderer
StandardNotificationGroupRenderer.php
Generated on Sat Oct 4 2025 20:01:11 for ILIAS by
1.9.4 (using
Doxyfile
)