ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
LoaderHelper.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2017 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
6
7use ILIAS\UI\Factory as RootFactory;
9
13trait LoaderHelper
14{
21 protected function getContextNames(array $contexts)
22 {
23 $names = [];
24 foreach ($contexts as $context) {
25 $names[] = str_replace(" ", "", $context->getCanonicalName());
26 }
27 return $names;
28 }
29}
An exception for terminatinating execution or to throw for unit testing.
A component is the most general form of an entity in the UI.
Definition: Component.php:14
This is how the factory for UI elements looks.
Definition: Factory.php:18
$context
Definition: webdav.php:26