ILIAS  release_8 Revision v8.24
ContextServices.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
21
24
30{
32
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
77 {
79 }
80}
Class ContextRepository The Collection of all available Contexts in the System.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...