19 declare(strict_types=1);
50 return $this->
get(BasicScreenContext::class, self::C_MAIN);
58 return $this->
get(BasicScreenContext::class,
'internal');
66 return $this->
get(BasicScreenContext::class,
'external');
74 return $this->
get(BasicScreenContext::class, self::C_DESKTOP);
82 $context = $this->
get(BasicScreenContext::class, self::C_REPO);
93 return $this->
get(BasicScreenContext::class, self::C_ADMINISTRATION);
101 return $this->
get(BasicScreenContext::class, self::C_LTI);
104 private function get(
string $class_name,
string $identifier) :
ScreenContext 106 if (!isset($this->contexts[$identifier])) {
107 $this->contexts[$identifier] =
new $class_name($identifier);
110 return $this->contexts[$identifier];