ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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:16