ILIAS  release_7 Revision v7.30-3-g800a261c036
Notification.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 2019 Timnon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
3
5
6use \ILIAS\UI\Component\MainControls\Slate as ISlate;
7use ILIAS\UI\Component\Item\Notification as NotificationItem;
11
16class Notification extends Slate implements ISlate\Notification
17{
21 protected $contents = [];
22
23 public function __construct(
25 string $name,
26 $notification_items,
28 ) {
29 $this->contents = $notification_items;
31 }
32
36 public function withAdditionalEntry(NotificationItem $entry) : ISlate\Notification
37 {
38 $clone = clone $this;
39 $clone->contents[] = $entry;
40 return $clone;
41 }
42
46 public function getContents() : array
47 {
48 return $this->contents;
49 }
50
51 public function withMappedSubNodes(callable $f)
52 {
53 return $this;
54 }
55}
An exception for terminatinating execution or to throw for unit testing.
__construct(SignalGeneratorInterface $signal_generator, string $name, $notification_items, Symbol $symbol)
This describes a bulky button.
Definition: Bulky.php:10
This describes a symbol.
Definition: Symbol.php:12
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc