ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
◀ 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
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
39
class
Services
40
{
41
use
SingletonTrait
;
42
43
private
static
?
Services
$instance
= null;
44
45
private
ProviderFactory
$provider_factory
;
46
private
ToastServices
$toast_services
;
47
48
public
string
$resource_version
=
''
;
49
55
public
function
__construct
(
56
ProviderFactory
$provider_factory,
57
?
UIServices
$ui = null,
58
string
$resource_version =
''
59
) {
60
global
$DIC
;
61
$this->provider_factory =
$provider_factory
;
62
$this->resource_version = urlencode($resource_version);
63
$this->toast_services =
new
ToastServices
($ui ?? $DIC->ui());
64
}
65
70
public
function
mainBar
():
MainMenuItemFactory
71
{
72
return
$this->
get
(MainMenuItemFactory::class);
73
}
74
78
public
function
metaBar
():
MetaBarItemFactory
79
{
80
return
$this->
get
(MetaBarItemFactory::class);
81
}
82
87
public
function
tool
():
ToolServices
88
{
89
return
$this->
get
(ToolServices::class);
90
}
91
95
public
function
layout
():
LayoutServices
96
{
97
return
$this->
getWithArgument
(LayoutServices::class, $this->resource_version);
98
}
99
103
public
function
notifications
():
NotificationServices
104
{
105
return
$this->
get
(NotificationServices::class);
106
}
107
108
public
function
toasts
():
ToastServices
109
{
110
return
$this->toast_services
;
111
}
112
116
public
function
collector
():
CollectorFactory
117
{
118
return
$this->
getWithArgument
(CollectorFactory::class, $this->provider_factory);
119
}
120
125
public
function
identification
():
IdentificationFactory
126
{
127
return
$this->
getWithArgument
(IdentificationFactory::class, $this->provider_factory);
128
}
129
}
ILIAS\GlobalScreen
PhpIncompatibleReturnTypeInspection
MainMenuItemFactory
ILIAS\GlobalScreen\Services\toasts
toasts()
Definition:
Services.php:108
LayoutServices
ILIAS\GlobalScreen\Scope\Layout\LayoutServices
Class LayoutServices.
Definition:
LayoutServices.php:32
ILIAS\GlobalScreen\Services\collector
collector()
Definition:
Services.php:116
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:125
UIServices
ILIAS\GlobalScreen\Services\tool
tool()
Definition:
Services.php:87
ILIAS\GlobalScreen\Services\$instance
static Services $instance
Definition:
Services.php:43
ILIAS\GlobalScreen\Scope\Tool\ToolServices
Class ToolServices.
Definition:
ToolServices.php:32
CollectorFactory
Services
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$DIC
global $DIC
Definition:
feed.php:28
ILIAS\GlobalScreen\Services\$provider_factory
ProviderFactory $provider_factory
Definition:
Services.php:45
ILIAS\DI\UIServices
Provides fluid interface to RBAC services.
Definition:
UIServices.php:23
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:48
ILIAS\GlobalScreen\Services\__construct
__construct(ProviderFactory $provider_factory, ?UIServices $ui=null, string $resource_version='')
Services constructor.
Definition:
Services.php:55
ILIAS\GlobalScreen\SingletonTrait
trait SingletonTrait
Class SingletonTrait.
Definition:
SingletonTrait.php:29
ILIAS\GlobalScreen\Services\layout
layout()
Definition:
Services.php:95
ProviderFactory
NotificationServices
ILIAS\GlobalScreen\Services\notifications
notifications()
Definition:
Services.php:103
ILIAS\GlobalScreen\Services\metaBar
metaBar()
Definition:
Services.php:78
ToolServices
ILIAS\GlobalScreen\Services\mainBar
mainBar()
Definition:
Services.php:70
ILIAS\GlobalScreen\Services\$toast_services
ToastServices $toast_services
Definition:
Services.php:46
ILIAS\GlobalScreen\Provider\ProviderFactory
Interface ProviderFactory.
Definition:
ProviderFactory.php:33
ILIAS\GlobalScreen\Identification\IdentificationFactory
Class IdentificationFactory All elements in the GlobalScreen service must be identifiable for the sup...
Definition:
IdentificationFactory.php:47
ILIAS\GlobalScreen\Collector\CollectorFactory
Class CollectorFactory.
Definition:
CollectorFactory.php:39
ILIAS\GlobalScreen\getWithArgument
getWithArgument(string $class_name, $argument)
Definition:
SingletonTrait.php:41
IdentificationFactory
ILIAS\GlobalScreen\Scope\Notification\NotificationServices
Class NotificationServices.
Definition:
NotificationServices.php:31
src
GlobalScreen
Services.php
Generated on Mon Apr 21 2025 22:02:43 for ILIAS by
1.8.13 (using
Doxyfile
)