ILIAS
trunk Revision v11.0_alpha-1846-g895b5f47236
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
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 Apr 21 2025 23:02:20 for ILIAS by
1.8.13 (using
Doxyfile
)