ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
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
4
namespace
ILIAS\UI\Implementation\Component\MainControls\Slate
;
5
6
use \ILIAS\UI\Component\MainControls\Slate as ISlate;
7
use
ILIAS\UI\Component\Item\Notification
as NotificationItem;
8
use
ILIAS\UI\Implementation\Component\SignalGeneratorInterface
;
9
use
ILIAS\UI\Component\Symbol\Symbol
;
10
use
ILIAS\UI\Component\Button\Bulky
;
11
16
class
Notification
extends
Slate
implements ISlate\Notification
17
{
21
protected
$contents
= [];
22
23
public
function
__construct
(
24
SignalGeneratorInterface
$signal_generator
,
25
string
$name
,
26
$notification_items,
27
Symbol
$symbol
28
) {
29
$this->contents = $notification_items;
30
parent::__construct
(
$signal_generator
,
$name
,
$symbol
);
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
}
php
An exception for terminatinating execution or to throw for unit testing.
ILIAS\UI\Implementation\Component\MainControls\Slate\Notification
Definition:
Notification.php:17
ILIAS\UI\Implementation\Component\MainControls\Slate\Notification\$contents
$contents
Definition:
Notification.php:21
ILIAS\UI\Implementation\Component\MainControls\Slate\Notification\withMappedSubNodes
withMappedSubNodes(callable $f)
Definition:
Notification.php:51
ILIAS\UI\Implementation\Component\MainControls\Slate\Notification\withAdditionalEntry
withAdditionalEntry(NotificationItem $entry)
Definition:
Notification.php:36
ILIAS\UI\Implementation\Component\MainControls\Slate\Notification\getContents
getContents()
Definition:
Notification.php:46
ILIAS\UI\Implementation\Component\MainControls\Slate\Notification\__construct
__construct(SignalGeneratorInterface $signal_generator, string $name, $notification_items, Symbol $symbol)
Definition:
Notification.php:23
ILIAS\UI\Implementation\Component\MainControls\Slate\Slate
Slate.
Definition:
Slate.php:21
ILIAS\UI\Implementation\Component\MainControls\Slate\Slate\$signal_generator
$signal_generator
Definition:
Slate.php:79
ILIAS\UI\Implementation\Component\MainControls\Slate\Slate\$name
$name
Definition:
Slate.php:32
ILIAS\UI\Implementation\Component\MainControls\Slate\Slate\$symbol
$symbol
Definition:
Slate.php:37
ILIAS\UI\Component\Button\Bulky
This describes a bulky button.
Definition:
Bulky.php:10
ILIAS\UI\Component\Item\Notification
Definition:
Notification.php:13
ILIAS\UI\Component\Symbol\Symbol
This describes a symbol.
Definition:
Symbol.php:12
ILIAS\UI\Implementation\Component\SignalGeneratorInterface
Definition:
SignalGeneratorInterface.php:10
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Definition:
PluginProviderHelper.php:40
ILIAS\UI\Implementation\Component\MainControls\Slate
Definition:
Combined.php:7
Vendor\Package\$f
$f
Definition:
example_cleaned.php:31
src
UI
Implementation
Component
MainControls
Slate
Notification.php
Generated on Sat Oct 4 2025 21:01:14 for ILIAS by
1.9.4 (using
Doxyfile
)