ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ 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
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
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
q
r
s
t
u
v
w
x
z
+
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
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
CollectorFactory.php
Go to the documentation of this file.
1
<?php
namespace
ILIAS\GlobalScreen\Collector
;
2
3
use
ILIAS\GlobalScreen\Provider\ProviderFactory
;
4
use
ILIAS\GlobalScreen\Scope\Layout\Collector\MainLayoutCollector
;
5
use
ILIAS\GlobalScreen\Scope\MainMenu\Collector\MainMenuMainCollector
;
6
use
ILIAS\GlobalScreen\Scope\MetaBar\Collector\MetaBarMainCollector
;
7
use
ILIAS\GlobalScreen\Scope\Notification\Collector\MainNotificationCollector
;
8
use
ILIAS\GlobalScreen\Scope\Tool\Collector\MainToolCollector
;
9
use
ILIAS\GlobalScreen\SingletonTrait
;
10
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\MainMenuItemFactory
;
11
17
class
CollectorFactory
18
{
19
use
SingletonTrait
;
23
protected
static
$instances
= [];
27
private
$provider_factory
;
28
29
35
public
function
__construct
(
ProviderFactory
$provider_factory
)
36
{
37
$this->provider_factory =
$provider_factory
;
38
}
39
40
45
public
function
mainmenu
() :
MainMenuMainCollector
46
{
47
if
(!$this->
has
(MainMenuMainCollector::class)) {
48
$providers = $this->provider_factory->getMainBarProvider();
49
$information = $this->provider_factory->getMainBarItemInformation();
50
51
return
$this->
getWithMultipleArguments
(
52
MainMenuMainCollector::class,
53
[
54
$providers,
55
new
MainMenuItemFactory
(),
56
$information
57
]
58
);
59
}
60
61
return
$this->
get
(MainMenuMainCollector::class);
62
}
63
64
68
public
function
metaBar
() :
MetaBarMainCollector
69
{
70
return
$this->
getWithArgument
(MetaBarMainCollector::class, $this->provider_factory->getMetaBarProvider());
71
}
72
73
78
public
function
tool
() :
MainToolCollector
79
{
80
if
(!$this->
has
(MainToolCollector::class)) {
81
$providers = $this->provider_factory->getToolProvider();
82
$information = $this->provider_factory->getMainBarItemInformation();
83
84
return
$this->
getWithMultipleArguments
(MainToolCollector::class, [$providers, $information]);
85
}
86
87
return
$this->
get
(MainToolCollector::class);
88
}
89
90
95
public
function
layout
() :
MainLayoutCollector
96
{
97
return
$this->
getWithMultipleArguments
(MainLayoutCollector::class, [$this->provider_factory->getModificationProvider()]);
98
}
99
100
104
public
function
notifications
() :
MainNotificationCollector
105
{
106
return
$this->
getWithArgument
(MainNotificationCollector::class, $this->provider_factory->getNotificationsProvider());
107
}
108
}
ILIAS\GlobalScreen\Scope\Notification\Collector\MainNotificationCollector
Class MainNotificationCollector.
Definition:
MainNotificationCollector.php:14
ILIAS\GlobalScreen\Scope\Layout\Collector\MainLayoutCollector
Class MainLayoutCollector.
Definition:
MainLayoutCollector.php:34
ILIAS\GlobalScreen\Scope\MainMenu\Collector\MainMenuMainCollector
Class MainMenuMainCollector This Collector will collect and then provide all available slates from th...
Definition:
MainMenuMainCollector.php:32
ILIAS\GlobalScreen\getWithMultipleArguments
getWithMultipleArguments(string $class_name, array $arguments)
Definition:
SingletonTrait.php:54
MainMenuItemFactory
ILIAS\GlobalScreen\Collector\CollectorFactory\layout
layout()
Definition:
CollectorFactory.php:95
ILIAS\GlobalScreen\Collector\CollectorFactory\$instances
static $instances
Definition:
CollectorFactory.php:23
ILIAS\GlobalScreen\Collector\CollectorFactory\mainmenu
mainmenu()
Definition:
CollectorFactory.php:45
MainMenuMainCollector
MainNotificationCollector
ILIAS\GlobalScreen\Collector\CollectorFactory\tool
tool()
Definition:
CollectorFactory.php:78
ILIAS\GlobalScreen\has
has(string $class_name)
Definition:
SingletonTrait.php:71
ILIAS\GlobalScreen\Collector\CollectorFactory\notifications
notifications()
Definition:
CollectorFactory.php:104
ILIAS\GlobalScreen\Scope\MainMenu\Factory\MainMenuItemFactory
Class MainMenuItemFactory.
Definition:
MainMenuItemFactory.php:20
ILIAS\GlobalScreen\Collector\CollectorFactory\metaBar
metaBar()
Definition:
CollectorFactory.php:68
ILIAS\GlobalScreen\Scope\Tool\Collector\MainToolCollector
Class MainToolCollector.
Definition:
MainToolCollector.php:23
ILIAS\GlobalScreen\SingletonTrait
trait SingletonTrait
Class SingletonTrait.
Definition:
SingletonTrait.php:9
ProviderFactory
MetaBarMainCollector
MainToolCollector
ILIAS\GlobalScreen\Provider\ProviderFactory
Interface ProviderFactory.
Definition:
ProviderFactory.php:15
ILIAS\GlobalScreen\Scope\MetaBar\Collector\MetaBarMainCollector
Class MetaBarMainCollector.
Definition:
MetaBarMainCollector.php:15
ILIAS\GlobalScreen\Collector\CollectorFactory
Class CollectorFactory.
Definition:
CollectorFactory.php:17
MainLayoutCollector
ILIAS\GlobalScreen\Collector
Definition:
AbstractBaseCollector.php:3
ILIAS\GlobalScreen\Collector\CollectorFactory\$provider_factory
$provider_factory
Definition:
CollectorFactory.php:27
ILIAS\GlobalScreen\getWithArgument
getWithArgument(string $class_name, $argument)
Definition:
SingletonTrait.php:37
ILIAS\GlobalScreen\Collector\CollectorFactory\__construct
__construct(ProviderFactory $provider_factory)
CollectorFactory constructor.
Definition:
CollectorFactory.php:35
src
GlobalScreen
Collector
CollectorFactory.php
Generated on Mon Apr 21 2025 20:01:23 for ILIAS by
1.8.13 (using
Doxyfile
)