ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ContextServices.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
31{
33
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
78 {
80 }
81}
The Collection of all available Contexts in the System.