ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
ContextServices.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\ScreenContext
;
22
23
use
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts
;
24
use
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection
;
25
30
class
ContextServices
31
{
32
private
ContextRepository
$context_repository
;
33
34
private
ContextCollection
$collection
;
35
39
public
function
__construct
()
40
{
41
$this->context_repository =
new
ContextRepository
();
42
$this->
collection
=
new
CalledContexts
($this->context_repository);
43
}
44
48
public
function
stack
():
CalledContexts
49
{
50
return
$this->collection
;
51
}
52
56
public
function
current
():
ScreenContext
57
{
58
return
$this->
collection
->current();
59
}
60
64
public
function
claim
():
CalledContexts
65
{
66
return
$this->collection
;
67
}
68
69
public
function
collection
():
ContextCollection
70
{
71
return
new
ContextCollection
($this->context_repository);
72
}
73
77
public
function
availableContexts
():
ContextRepository
78
{
79
return
$this->context_repository
;
80
}
81
}
ILIAS\GlobalScreen\ScreenContext\ContextRepository
The Collection of all available Contexts in the System.
Definition:
ContextRepository.php:35
ILIAS\GlobalScreen\ScreenContext\ContextServices
Class ContextServices.
Definition:
ContextServices.php:31
ILIAS\GlobalScreen\ScreenContext\ContextServices\availableContexts
availableContexts()
Definition:
ContextServices.php:77
ILIAS\GlobalScreen\ScreenContext\ContextServices\__construct
__construct()
ContextServices constructor.
Definition:
ContextServices.php:39
ILIAS\GlobalScreen\ScreenContext\ContextServices\stack
stack()
Definition:
ContextServices.php:48
ILIAS\GlobalScreen\ScreenContext\ContextServices\current
current()
Definition:
ContextServices.php:56
ILIAS\GlobalScreen\ScreenContext\ContextServices\$context_repository
ContextRepository $context_repository
Definition:
ContextServices.php:32
ILIAS\GlobalScreen\ScreenContext\ContextServices\collection
collection()
Definition:
ContextServices.php:69
ILIAS\GlobalScreen\ScreenContext\ContextServices\claim
claim()
Definition:
ContextServices.php:64
ILIAS\GlobalScreen\ScreenContext\ContextServices\$collection
ContextCollection $collection
Definition:
ContextServices.php:34
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts
Definition:
CalledContexts.php:30
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection
Definition:
ContextCollection.php:31
ILIAS\GlobalScreen\ScreenContext\ScreenContext
Interface ScreenContext.
Definition:
ScreenContext.php:31
ILIAS\GlobalScreen\ScreenContext
components
ILIAS
GlobalScreen
src
ScreenContext
ContextServices.php
Generated on Sat Oct 18 2025 23:03:08 for ILIAS by
1.9.4 (using
Doxyfile
)