ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ContextServices.php
Go to the documentation of this file.
2
5
12{
13
21 private $collection;
22
23
27 public function __construct()
28 {
29 $this->context_repository = new ContextRepository();
30 $this->collection = new CalledContexts($this->context_repository);
31 }
32
33
37 public function stack() : CalledContexts
38 {
39 return $this->collection;
40 }
41
42
46 public function current() : ScreenContext
47 {
48 return $this->collection->current();
49 }
50
51
55 public function claim() : CalledContexts
56 {
57 return $this->collection;
58 }
59
60
64 public function collection()
65 {
66 return new ContextCollection($this->context_repository);
67 }
68
69
74 {
76 }
77}
An exception for terminatinating execution or to throw for unit testing.