ILIAS
trunk Revision v11.0_alpha-1769-g99a433fe2dc
◀ 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
ContextServices.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
namespace
ILIAS\GlobalScreen\ScreenContext
;
21
22
use
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts
;
23
use
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection
;
24
29
class
ContextServices
30
{
31
private
ContextRepository
$context_repository
;
32
33
private
ContextCollection
$collection
;
34
38
public
function
__construct
()
39
{
40
$this->context_repository =
new
ContextRepository
();
41
$this->
collection
=
new
CalledContexts
($this->context_repository);
42
}
43
47
public
function
stack
():
CalledContexts
48
{
49
return
$this->collection
;
50
}
51
55
public
function
current
():
ScreenContext
56
{
57
return
$this->
collection
->current();
58
}
59
63
public
function
claim
():
CalledContexts
64
{
65
return
$this->collection
;
66
}
67
68
public
function
collection
():
ContextCollection
69
{
70
return
new
ContextCollection
($this->context_repository);
71
}
72
76
public
function
availableContexts
():
ContextRepository
77
{
78
return
$this->context_repository
;
79
}
80
}
ILIAS\GlobalScreen\ScreenContext\ContextServices
Class ContextServices.
Definition:
ContextServices.php:29
ILIAS\GlobalScreen\ScreenContext\ContextServices\$collection
ContextCollection $collection
Definition:
ContextServices.php:33
ILIAS\GlobalScreen\ScreenContext\ContextServices\__construct
__construct()
ContextServices constructor.
Definition:
ContextServices.php:38
ILIAS\GlobalScreen\ScreenContext\ContextServices\current
current()
Definition:
ContextServices.php:55
ILIAS\GlobalScreen\ScreenContext\ContextRepository
The Collection of all available Contexts in the System.
Definition:
ContextRepository.php:34
ILIAS\GlobalScreen\ScreenContext\ContextServices\$context_repository
ContextRepository $context_repository
Definition:
ContextServices.php:31
ILIAS\GlobalScreen\ScreenContext\ContextServices\stack
stack()
Definition:
ContextServices.php:47
ILIAS\GlobalScreen\ScreenContext
CalledContexts
ILIAS\GlobalScreen\ScreenContext\ContextServices\claim
claim()
Definition:
ContextServices.php:63
ContextCollection
ILIAS\GlobalScreen\ScreenContext\ContextServices\collection
collection()
Definition:
ContextServices.php:68
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts
Definition:
CalledContexts.php:29
ILIAS\GlobalScreen\ScreenContext\ContextServices\availableContexts
availableContexts()
Definition:
ContextServices.php:76
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection
Definition:
ContextCollection.php:30
ILIAS\GlobalScreen\ScreenContext\ScreenContext
Interface ScreenContext.
Definition:
ScreenContext.php:29
components
ILIAS
GlobalScreen
src
ScreenContext
ContextServices.php
Generated on Sun Apr 13 2025 23:03:02 for ILIAS by
1.8.13 (using
Doxyfile
)