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");
37 public function register($name) {
38 $this->resources[] = $name;
45 public function txt($a_topic, $a_default_lang_fallback_mod =
"") {
46 $this->requested[] = $a_topic;
56 $id =
"id_".$this->count;
62 $this->on_load_code[] =
$code;
71 assert_options(ASSERT_WARNING, 0);
72 assert_options(ASSERT_CALLBACK, null);
76 assert_options(ASSERT_WARNING, 1);
77 assert_options(ASSERT_CALLBACK, null);
101 $ui_factory = $this->getUIFactory();
102 $tpl_factory = $this->getTemplateFactory();
103 $resource_registry = $this->getResourceRegistry();
104 $lng = $this->getLanguage();
105 $js_binding = $this->getJavaScriptBinding();
107 $ui_factory, $tpl_factory, $resource_registry,
$lng, $js_binding);
111 return trim(str_replace(
"\n",
"",
$html));
120 $html->formatOutput =
true;
121 $html->preserveWhiteSpace =
false;
123 $expected->formatOutput =
true;
124 $expected->preserveWhiteSpace =
false;
125 $html->loadXML($this->normalizeHTML($html_as_string));
126 $expected->loadXML($this->normalizeHTML($expected_html_as_string));
127 $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.
deck(array $cards)
description: purpose: > Decks are used to display multiple Cards in a grid.
glyph()
description: purpose: > Glyphs map a generally known concept or symbol to a specific concept in ILIA...
Provides common functionality for UI tests.
This is how the factory for UI elements looks.
panel()
description: purpose: > Panels are used to group titled content.
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)
Provides methods to interface with javascript.
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.
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.
counter()
description: purpose: > Counter inform users about the quantity of items indicated by a glyph...