32 return $this->
get(BasicScreenContext::class,
self::C_MAIN);
41 return $this->
get(BasicScreenContext::class,
'internal');
50 return $this->
get(BasicScreenContext::class,
'external');
89 return $this->
get(BasicScreenContext::class,
self::C_LTI);
99 private function get(
string $class_name,
string $identifier)
101 if (!isset($this->contexts[$identifier])) {
102 $this->contexts[$identifier] =
new $class_name($identifier);
105 return $this->contexts[$identifier];
An exception for terminatinating execution or to throw for unit testing.