ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ 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
15
class
Notification
extends
Slate
implements ISlate\Notification
16
{
20
protected
$contents
= [];
21
22
public
function
__construct
(
23
SignalGeneratorInterface
$signal_generator,
24
string
$name
,
25
$notification_items,
26
Symbol
$symbol
27
) {
28
$this->contents = $notification_items;
29
parent::__construct
($signal_generator,
$name
,
$symbol
);
30
}
31
35
public
function
withAdditionalEntry
(NotificationItem $entry) : ISlate\
Notification
36
{
37
$clone = clone $this;
38
$clone->contents[] = $entry;
39
return
$clone;
40
}
41
45
public
function
getContents
() : array
46
{
47
return
$this->contents
;
48
}
49
50
public
function
withMappedSubNodes
(callable
$f
)
51
{
52
return
$this;
53
}
54
}
php
An exception for terminatinating execution or to throw for unit testing.
ILIAS\UI\Implementation\Component\MainControls\Slate\Notification
Definition:
Notification.php:16
ILIAS\UI\Implementation\Component\MainControls\Slate\Notification\$contents
$contents
Definition:
Notification.php:20
ILIAS\UI\Implementation\Component\MainControls\Slate\Notification\withMappedSubNodes
withMappedSubNodes(callable $f)
Definition:
Notification.php:50
ILIAS\UI\Implementation\Component\MainControls\Slate\Notification\withAdditionalEntry
withAdditionalEntry(NotificationItem $entry)
Definition:
Notification.php:35
ILIAS\UI\Implementation\Component\MainControls\Slate\Notification\getContents
getContents()
Definition:
Notification.php:45
ILIAS\UI\Implementation\Component\MainControls\Slate\Notification\__construct
__construct(SignalGeneratorInterface $signal_generator, string $name, $notification_items, Symbol $symbol)
Definition:
Notification.php:22
ILIAS\UI\Implementation\Component\MainControls\Slate\Slate
Slate.
Definition:
Slate.php:21
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\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:30
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 20:01:12 for ILIAS by
1.9.4 (using
Doxyfile
)