ILIAS
release_8 Revision v8.24
◀ ilDoc Overview
Container.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
21
namespace
ILIAS\UI\Implementation\Component\Toast
;
22
23
use ILIAS\UI\Implementation\Component\ComponentHelper;
24
use
ILIAS\UI\Component\Toast
as
ComponentInterface
;
25
26
class
Container
implements
ComponentInterface\Container
27
{
28
use ComponentHelper;
29
33
protected
array
$toasts
= [];
34
35
public
function
getToasts
(): array
36
{
37
return
$this->toasts
;
38
}
39
40
public
function
withAdditionalToast
(
ComponentInterface
\
Toast
$toast):
Container
41
{
42
$clone = clone $this;
43
$clone->toasts[] = $toast;
44
return
$clone;
45
}
46
47
public
function
withoutToasts
():
Container
48
{
49
$clone = clone $this;
50
$clone->toasts = [];
51
return
$clone;
52
}
53
}
ILIAS\UI\Implementation\Component\Toast\Container
Definition:
Container.php:27
ILIAS\UI\Implementation\Component\Toast\Container\withoutToasts
withoutToasts()
Definition:
Container.php:47
ILIAS\UI\Implementation\Component\Toast\Container\$toasts
array $toasts
Definition:
Container.php:33
ILIAS\UI\Implementation\Component\Toast\Container\getToasts
getToasts()
Definition:
Container.php:35
ILIAS\UI\Implementation\Component\Toast\Container\withAdditionalToast
withAdditionalToast(ComponentInterface\Toast $toast)
Definition:
Container.php:40
ILIAS\UI\Implementation\Component\Toast\Toast
Definition:
Toast.php:33
ILIAS\UI\Component\Toast\Container
Definition:
Container.php:30
ILIAS\UI\Component\Toast
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
Container.php:21
ILIAS\UI\Implementation\Component\Toast
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
Container.php:21
src
UI
Implementation
Component
Toast
Container.php
Generated on Sun Nov 2 2025 22:01:58 for ILIAS by
1.9.4 (using
Doxyfile
)