ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Notification.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use ILIAS\UI\Component\Item\Notification as NotificationItem;
28
33class Notification extends Slate implements ISlate\Notification
34{
38 protected array $contents = [];
39
40 public function __construct(
42 string $name,
43 $notification_items,
45 ) {
46 $this->contents = $notification_items;
48 }
49
53 public function withAdditionalEntry(NotificationItem $entry): ISlate\Notification
54 {
55 $clone = clone $this;
56 $clone->contents[] = $entry;
57 return $clone;
58 }
59
63 public function getContents(): array
64 {
65 return $this->contents;
66 }
67
68 public function withMappedSubNodes(callable $f): ISlate\Notification
69 {
70 return $this;
71 }
72}
__construct(SignalGeneratorInterface $signal_generator, string $name, $notification_items, Symbol $symbol)
This describes a bulky button.
Definition: Bulky.php:29
This describes a symbol.
Definition: Symbol.php:30
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Combined.php:21