ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
◀ 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
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\Scope\Toast\Factory\isItem
;
23
use
ILIAS\GlobalScreen\Collector\AbstractBaseCollector
;
24
use
ILIAS\GlobalScreen\Scope\Toast\Provider\ToastProvider
;
25
use
Iterator
;
26
use
ILIAS\GlobalScreen\Scope\Toast\Factory\isStandardItem
;
27
28
class
ToastCollector
extends
AbstractBaseCollector
29
{
31
private
array
$toasts
= [];
32
36
public
function
__construct
(
private
array $providers)
37
{
38
$this->
collectOnce
();
39
}
40
44
private
function
returnToastsFromProviders
():
Iterator
45
{
46
foreach
($this->providers as
$provider
) {
47
yield $provider->getToasts();
48
}
49
}
50
51
public
function
collectStructure
(): void
52
{
53
$this->toasts = array_merge([], ...iterator_to_array($this->
returnToastsFromProviders
()));
54
}
55
56
public
function
filterItemsByVisibilty
(
bool
$async_only =
false
): void
57
{
58
}
59
60
public
function
prepareItemsForUIRepresentation
(): void
61
{
62
}
63
64
public
function
cleanupItemsForUIRepresentation
(): void
65
{
66
}
67
68
public
function
sortItemsForUIRepresentation
(): void
69
{
70
}
71
75
public
function
getToasts
(): array
76
{
77
return
$this->toasts
;
78
}
79
}
ILIAS\Awareness\User\Collector\AbstractBaseCollector\collectOnce
collectOnce()
Runs the Collection of all items from the providers.
Definition:
AbstractBaseCollector.php:41
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\sortItemsForUIRepresentation
sortItemsForUIRepresentation()
Definition:
ToastCollector.php:68
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\filterItemsByVisibilty
filterItemsByVisibilty(bool $async_only=false)
Definition:
ToastCollector.php:56
isItem
ILIAS\Awareness\User\Collector\AbstractBaseCollector
Class AbstractBaseCollector.
Definition:
AbstractBaseCollector.php:27
ToastProvider
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\prepareItemsForUIRepresentation
prepareItemsForUIRepresentation()
Definition:
ToastCollector.php:60
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\getToasts
getToasts()
Definition:
ToastCollector.php:75
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\returnToastsFromProviders
returnToastsFromProviders()
Definition:
ToastCollector.php:44
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector
Definition:
ToastCollector.php:28
$provider
$provider
Definition:
ltitoken.php:80
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\$toasts
array $toasts
Definition:
ToastCollector.php:31
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\__construct
__construct(private array $providers)
Definition:
ToastCollector.php:36
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\cleanupItemsForUIRepresentation
cleanupItemsForUIRepresentation()
Definition:
ToastCollector.php:64
AbstractBaseCollector
ILIAS\GlobalScreen\Scope\Toast\Collector\ToastCollector\collectStructure
collectStructure()
Definition:
ToastCollector.php:51
Iterator
isStandardItem
ILIAS\GlobalScreen\Scope\Toast\Collector
components
ILIAS
GlobalScreen
src
Scope
Toast
Collector
ToastCollector.php
Generated on Sat Apr 5 2025 23:03:18 for ILIAS by
1.8.13 (using
Doxyfile
)