Class ContextRepository.
More...
|
| get (string $class_name, string $identifier) |
|
Class ContextRepository.
The Collection of all available Contexts in the System. You can use them in your
- See also
- ScreenContextAwareProvider to announce you are interested in.
- Author
- Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Definition at line 13 of file ContextRepository.php.
◆ administration()
ILIAS\GlobalScreen\ScreenContext\ContextRepository::administration |
( |
| ) |
|
◆ desktop()
ILIAS\GlobalScreen\ScreenContext\ContextRepository::desktop |
( |
| ) |
|
◆ external()
function ILIAS\GlobalScreen\ScreenContext\ContextRepository::external |
( |
| ) |
|
◆ get()
ILIAS\GlobalScreen\ScreenContext\ContextRepository::get |
( |
string |
$class_name, |
|
|
string |
$identifier |
|
) |
| |
|
private |
- Parameters
-
string | $class_name | |
string | $identifier | |
- Returns
- ScreenContext
Definition at line 99 of file ContextRepository.php.
101 if (!isset($this->contexts[$identifier])) {
102 $this->contexts[$identifier] =
new $class_name($identifier);
105 return $this->contexts[$identifier];
◆ lti()
ILIAS\GlobalScreen\ScreenContext\ContextRepository::lti |
( |
| ) |
|
◆ main()
ILIAS\GlobalScreen\ScreenContext\ContextRepository::main |
( |
| ) |
|
◆ repository()
ILIAS\GlobalScreen\ScreenContext\ContextRepository::repository |
( |
| ) |
|
◆ $contexts
ILIAS\GlobalScreen\ScreenContext\ContextRepository::$contexts = [] |
|
private |
◆ C_ADMINISTRATION
const ILIAS\GlobalScreen\ScreenContext\ContextRepository::C_ADMINISTRATION = 'administration' |
◆ C_DESKTOP
const ILIAS\GlobalScreen\ScreenContext\ContextRepository::C_DESKTOP = 'desktop' |
◆ C_LTI
const ILIAS\GlobalScreen\ScreenContext\ContextRepository::C_LTI = 'lti' |
◆ C_MAIN
const ILIAS\GlobalScreen\ScreenContext\ContextRepository::C_MAIN = 'main' |
◆ C_REPO
const ILIAS\GlobalScreen\ScreenContext\ContextRepository::C_REPO = 'repo' |
The documentation for this class was generated from the following file: