ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
Container.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
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\$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\withoutToasts
withoutToasts()
Definition:
Container.php:47
ILIAS\UI\Component\Toast
Definition:
Container.php:21
ILIAS\UI\Implementation\Component\Toast\Container\withAdditionalToast
withAdditionalToast(ComponentInterface\Toast $toast)
Definition:
Container.php:40
ILIAS\UI\Implementation\Component\Toast\Container
Definition:
Container.php:26
ILIAS\UI\Implementation\Component\Toast\Toast
Definition:
Toast.php:32
ComponentHelper
ILIAS\UI\Implementation\Component\Toast
Definition:
Container.php:21
ComponentHelper
components
ILIAS
UI
src
Implementation
Component
Toast
Container.php
Generated on Mon Sep 1 2025 23:02:34 for ILIAS by
1.8.13 (using
Doxyfile
)