ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
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
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
ToastCollector.php
Go to the documentation of this file.
1
<?php
18
declare(strict_types=1);
19
20
namespace
ILIAS\GlobalScreen\Scope\Toast\Collector
;
21
22
use
ILIAS\GlobalScreen\Collector\AbstractBaseCollector
;
23
use
ILIAS\GlobalScreen\Scope\Toast\Provider\ToastProvider
;
24
use
Iterator
;
25
use
ILIAS\GlobalScreen\Scope\Toast\Factory\isStandardItem
;
26
27
class
ToastCollector
extends
AbstractBaseCollector
28
{
30
private
array
$providers
;
32
private
array
$toasts
= [];
33
37
public
function
__construct
(array $providers)
38
{
39
$this->providers =
$providers
;
40
$this->
collectOnce
();
41
}
42
46
private
function
returnToastsFromProviders
():
Iterator
47
{
48
foreach
($this->providers as
$provider
) {
49
yield $provider->getToasts();
50
}
51
}
52
53
public
function
collectStructure
(): void
54
{
55
$this->toasts = array_merge([], ...iterator_to_array($this->
returnToastsFromProviders
()));
56
}
57
58
public
function
filterItemsByVisibilty
(
bool
$async_only =
false
): void
59
{
60
}
61
62
public
function
prepareItemsForUIRepresentation
(): void
63
{
64
}
65
66
public
function
cleanupItemsForUIRepresentation
(): void
67
{
68
}
69
70
public
function
sortItemsForUIRepresentation
(): void
71
{
72
}
73
77
public
function
getToasts
(): array
78
{
79
return
$this->toasts
;
80
}
81
}
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\sortItemsForUIRepresentation
sortItemsForUIRepresentation()
Definition:
ToastCollector.php:70
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\$providers
array $providers
Definition:
ToastCollector.php:30
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\__construct
__construct(array $providers)
Definition:
ToastCollector.php:37
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\filterItemsByVisibilty
filterItemsByVisibilty(bool $async_only=false)
Definition:
ToastCollector.php:58
ILIAS\GlobalScreen\Collector\AbstractBaseCollector
Class AbstractBaseCollector.
Definition:
AbstractBaseCollector.php:26
ToastProvider
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\prepareItemsForUIRepresentation
prepareItemsForUIRepresentation()
Definition:
ToastCollector.php:62
ILIAS\GlobalScreen\Collector\AbstractBaseCollector\collectOnce
collectOnce()
Runs the Collection of all items from the providers.
Definition:
AbstractBaseCollector.php:40
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\getToasts
getToasts()
Definition:
ToastCollector.php:77
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\returnToastsFromProviders
returnToastsFromProviders()
Definition:
ToastCollector.php:46
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector
Definition:
ToastCollector.php:27
$provider
$provider
Definition:
ltitoken.php:83
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\$toasts
array $toasts
Definition:
ToastCollector.php:32
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\cleanupItemsForUIRepresentation
cleanupItemsForUIRepresentation()
Definition:
ToastCollector.php:66
AbstractBaseCollector
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\collectStructure
collectStructure()
Definition:
ToastCollector.php:53
Iterator
isStandardItem
ILIAS\GlobalScreen\Scope\Toast\Collector
src
GlobalScreen
Scope
Toast
Collector
ToastCollector.php
Generated on Sat Apr 5 2025 22:02:42 for ILIAS by
1.8.13 (using
Doxyfile
)