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
Services.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
22
namespace
ILIAS\GlobalScreen
;
23
24
use
ILIAS\GlobalScreen\Collector\CollectorFactory
;
25
use
ILIAS\GlobalScreen\Identification\IdentificationFactory
;
26
use
ILIAS\GlobalScreen\Provider\ProviderFactory
;
27
use
ILIAS\GlobalScreen\Scope\Layout\LayoutServices
;
28
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\MainMenuItemFactory
;
29
use
ILIAS\GlobalScreen\Scope\MetaBar\Factory\MetaBarItemFactory
;
30
use
ILIAS\GlobalScreen\Scope\Notification\NotificationServices
;
31
use
ILIAS\GlobalScreen\Scope\Toast\ToastServices
;
32
use
ILIAS\GlobalScreen\Scope\Tool\ToolServices
;
33
use
ILIAS\DI\UIServices
;
34
use
ILIAS\GlobalScreen\Scope\Footer\Factory\FooterItemFactory
;
35
40
class
Services
41
{
42
use
SingletonTrait
;
43
44
private
static
?
Services
$instance
=
null
;
45
private
ToastServices
$toast_services
;
46
47
public
string
$resource_version
=
''
;
48
54
public
function
__construct
(
55
private
ProviderFactory
$provider_factory,
56
?
UIServices
$ui =
null
,
57
string
$resource_version =
''
58
) {
59
global
$DIC
;
60
$this->resource_version = urlencode($resource_version);
61
$this->toast_services =
new
ToastServices
($ui ?? $DIC->ui());
62
}
63
64
public
function
mainBar
():
MainMenuItemFactory
65
{
66
return
$this->
get
(MainMenuItemFactory::class);
67
}
68
69
70
public
function
metaBar
():
MetaBarItemFactory
71
{
72
return
$this->
get
(MetaBarItemFactory::class);
73
}
74
75
public
function
footer
():
FooterItemFactory
76
{
77
return
$this->
get
(FooterItemFactory::class);
78
}
79
84
public
function
tool
():
ToolServices
85
{
86
return
$this->
get
(ToolServices::class);
87
}
88
92
public
function
layout
():
LayoutServices
93
{
94
return
$this->
getWithArgument
(LayoutServices::class, $this->resource_version);
95
}
96
100
public
function
notifications
():
NotificationServices
101
{
102
return
$this->
get
(NotificationServices::class);
103
}
104
105
public
function
toasts
():
ToastServices
106
{
107
return
$this->toast_services
;
108
}
109
113
public
function
collector
():
CollectorFactory
114
{
115
return
$this->
getWithArgument
(CollectorFactory::class, $this->provider_factory);
116
}
117
122
public
function
identification
():
IdentificationFactory
123
{
124
return
$this->
getWithArgument
(IdentificationFactory::class, $this->provider_factory);
125
}
126
}
FooterItemFactory
ILIAS\GlobalScreen\Services\footer
footer()
Definition:
Services.php:75
ILIAS\GlobalScreen
PhpIncompatibleReturnTypeInspection
MainMenuItemFactory
ILIAS\GlobalScreen\Services\toasts
toasts()
Definition:
Services.php:105
LayoutServices
ILIAS\GlobalScreen\Scope\Layout\LayoutServices
Class LayoutServices.
Definition:
LayoutServices.php:31
ILIAS\GlobalScreen\Services\collector
collector()
Definition:
Services.php:113
ILIAS\GlobalScreen\Scope\MetaBar\Factory\MetaBarItemFactory
Class MetaBarItemFactory This factory provides you all available types for MainMenu GlobalScreen Item...
Definition:
MetaBarItemFactory.php:29
ILIAS\GlobalScreen\Services\identification
identification()
Definition:
Services.php:122
UIServices
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\GlobalScreen\Services\tool
tool()
Definition:
Services.php:84
ILIAS\GlobalScreen\Services\$instance
static Services $instance
Definition:
Services.php:44
ILIAS\GlobalScreen\Scope\Tool\ToolServices
Class ToolServices.
Definition:
ToolServices.php:31
CollectorFactory
ILIAS\GlobalScreen\SingletonTrait
trait SingletonTrait
Class SingletonTrait.
Definition:
SingletonTrait.php:29
Services
ILIAS\GlobalScreen\Scope\Footer\Factory\FooterItemFactory
Definition:
FooterItemFactory.php:29
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:142
ILIAS\DI\UIServices
Provides fluid interface to RBAC services.
Definition:
UIServices.php:24
ToastServices
ILIAS\GlobalScreen\Scope\Toast\ToastServices
Definition:
ToastServices.php:26
ILIAS\GlobalScreen\Scope\MainMenu\Factory\MainMenuItemFactory
Class MainMenuItemFactory This factory provides you all available types for MainMenu GlobalScreen Ite...
Definition:
MainMenuItemFactory.php:37
MetaBarItemFactory
ILIAS\GlobalScreen\Services\$resource_version
string $resource_version
Definition:
Services.php:47
ILIAS\GlobalScreen\Services\layout
layout()
Definition:
Services.php:92
ProviderFactory
NotificationServices
ILIAS\GlobalScreen\Services\notifications
notifications()
Definition:
Services.php:100
$DIC
global $DIC
Definition:
shib_login.php:22
ILIAS\GlobalScreen\Services\metaBar
metaBar()
Definition:
Services.php:70
ToolServices
ILIAS\GlobalScreen\Services\__construct
__construct(private ProviderFactory $provider_factory, ?UIServices $ui=null, string $resource_version='')
Services constructor.
Definition:
Services.php:54
ILIAS\GlobalScreen\Services\mainBar
mainBar()
Definition:
Services.php:64
ILIAS\GlobalScreen\Services\$toast_services
ToastServices $toast_services
Definition:
Services.php:45
ILIAS\GlobalScreen\Provider\ProviderFactory
Definition:
ProviderFactory.php:34
ILIAS\GlobalScreen\Identification\IdentificationFactory
Class IdentificationFactory All elements in the GlobalScreen service must be identifiable for the sup...
Definition:
IdentificationFactory.php:48
ILIAS\Awareness\User\Collector\CollectorFactory
Definition:
CollectorFactory.php:41
ILIAS\GlobalScreen\getWithArgument
getWithArgument(string $class_name, $argument)
Definition:
SingletonTrait.php:41
IdentificationFactory
ILIAS\GlobalScreen\Scope\Notification\NotificationServices
Class NotificationServices.
Definition:
NotificationServices.php:30
components
ILIAS
GlobalScreen
src
Services.php
Generated on Mon Apr 21 2025 23:02:01 for ILIAS by
1.8.13 (using
Doxyfile
)