ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ContextServices.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
The Collection of all available Contexts in the System.