5 require_once(
"libs/composer/vendor/autoload.php");
7 require_once(__DIR__ .
"/Renderer/ilIndependentTemplate.php");
8 require_once(__DIR__ .
"/../../Services/Language/classes/class.ilLanguage.php");
99 $this->resources[] =
$name;
109 public function txt($a_topic, $a_default_lang_fallback_mod =
"")
111 $this->requested[] = $a_topic;
126 $id =
"id_" . $this->count;
133 $this->on_load_code[] =
$code;
144 return $this->getRendererFor($component);
148 return $this->getContexts();
170 return "DummyComponent";
181 assert_options(ASSERT_WARNING, 0);
182 assert_options(ASSERT_CALLBACK, null);
187 assert_options(ASSERT_WARNING, 1);
188 assert_options(ASSERT_CALLBACK, null);
218 $ui_factory = $this->getUIFactory();
219 $tpl_factory = $this->getTemplateFactory();
220 $resource_registry = $this->getResourceRegistry();
221 $lng = $this->getLanguage();
223 $js_binding = $this->getJavaScriptBinding();
226 $component_renderer_loader
227 =
new Render\LoaderCachingWrapper(
245 return trim(str_replace(
"\n",
"",
$html));
255 $html->formatOutput =
true;
256 $html->preserveWhiteSpace =
false;
258 $expected->formatOutput =
true;
259 $expected->preserveWhiteSpace =
false;
260 $html->loadXML($this->normalizeHTML($html_as_string));
261 $expected->loadXML($this->normalizeHTML($expected_html_as_string));
262 $this->assertEquals($expected->saveHTML(),
$html->saveHTML());
card($title, \ILIAS\UI\Component\Image\Image $image=null)
description: purpose: > A card is a flexible content container for small chunks of structured data...
Registry for resources required by rendered output like Javascript or CSS.
item()
description: purpose: > An item displays a unique entity within the system.
breadcrumbs(array $crumbs)
description: purpose: > Breadcrumbs is a supplemental navigation scheme.
dropzone()
description: purpose: > Dropzones are containers used to drop either files or other HTML elements...
icon()
description: purpose: > Icons are quickly comprehensible and recognizable graphics.
getCanonicalName()
Get the canonical name of the component.
viewControl()
description: purpose: > View Controls switch between different visualisation of data.
Loads renderers for components from the file system.
link()
description: purpose: > Links are used navigate to other resources or views of the system...
if(!array_key_exists('StateId', $_REQUEST)) $id
Registers resources for retreived renderers at a ResourceRegistry.
getDefaultRenderer(JavaScriptBinding $js_binding=null)
deck(array $cards)
description: purpose: > Decks are used to display multiple Cards in a grid.
getOnLoadCodeAsync()
Get all the registered on-load javascript code for the async context, e.g.
glyph()
description: purpose: > Glyphs map a generally known concept or symbol to a specific concept in ILIA...
toJS($a_key, ilTemplate $a_tpl=null)
Provides common functionality for UI tests.
This is how the factory for UI elements looks.
chart()
description: purpose: > Charts are used to graphically represent data in various forms such as maps...
panel()
description: purpose: > Panels are used to group titled content.
special template class to simplify handling of ITX/PEAR
legacy($content)
description: purpose: > This component is used to wrap an existing ILIAS UI element into a UI compon...
assertHTMLEquals($expected_html_as_string, $html_as_string)
modal()
description: purpose: The Modal forces users to focus on the task at hand.
Provides methods to interface with javascript.
dropdown()
description: purpose: > Dropdowns reveal a list of interactions that change the system’s status or ...
Create styles array
The data for the language used.
image()
description: purpose: The Image component is used to display images of various sources.
addOnLoadCode($code)
Add some JavaScript-statements to the on-load handler of the page.
getTemplate($path, $purge_unfilled_vars, $purge_unused_blocks)
Get template instance.
listing()
description: purpose: > Listings are used to structure itemised textual information.
_getRendererFor(IComponent $component)
createId()
Create a fresh unique id.
button()
description: purpose: > Buttons trigger interactions that change the system’s status.
txt($a_topic, $a_default_lang_fallback_mod="")
Interface for a factory that provides templates.
divider()
description: purpose: > A divider marks a thematic change in a sequence of other components...
counter()
description: purpose: > Counter inform users about the quantity of items indicated by a glyph...
popover()
description: purpose: > Popovers can be used when space is scarce i.e.