ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
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 Aug 31 2025 23:03:03 for ILIAS by
1.8.13 (using
Doxyfile
)