ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ContextStackTrait.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\Xml;
4 
23 
35  public $elementMap = [];
36 
48  public $contextUri;
49 
58  public $namespaceMap = [];
59 
78  public $classMap = [];
79 
85  protected $contextStack = [];
86 
96  function pushContext() {
97 
98  $this->contextStack[] = [
99  $this->elementMap,
103  ];
104 
105  }
106 
112  function popContext() {
113 
114  list(
115  $this->elementMap,
116  $this->contextUri,
117  $this->namespaceMap,
118  $this->classMap
119  ) = array_pop($this->contextStack);
120 
121  }
122 
123 }
popContext()
Restore the previous "context".
pushContext()
Create a new "context".