5require_once(
"libs/composer/vendor/autoload.php");
7require_once(__DIR__.
"/Renderer/ilIndependentTemplate.php");
8require_once(__DIR__.
"/../../Services/Language/classes/class.ilLanguage.php");
27 public function deck(array $cards) {}
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);
107 $ui_factory, $tpl_factory, $resource_registry,
$lng, $js_binding);
111 return trim(str_replace(
"\n",
"",
$html));
119 $html =
new DOMDocument();
120 $html->formatOutput =
true;
121 $html->preserveWhiteSpace =
false;
122 $expected =
new DOMDocument();
123 $expected->formatOutput =
true;
124 $expected->preserveWhiteSpace =
false;
126 $expected->loadXML($this->
normalizeHTML($expected_html_as_string));
127 $this->assertEquals($expected->saveHTML(),
$html->saveHTML());
An exception for terminatinating execution or to throw for unit testing.
Renderer that dispatches rendering of UI components to a Renderer found in the same namespace as the ...
Provides common functionality for UI tests.
assertHTMLEquals($expected_html_as_string, $html_as_string)
createId()
Create a fresh unique id.
addOnLoadCode($code)
Add some JavaScript-statements to the on-load handler of the page.
card($title, \ILIAS\UI\Component\Image\Image $image=null)
getTemplate($path, $purge_unfilled_vars, $purge_unused_blocks)
Get template instance.
txt($a_topic, $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
This is how the factory for UI elements looks.
Provides methods to interface with javascript.
Registry for resources required by rendered output like Javascript or CSS.
Interface for a factory that provides templates.
Interface Card \UI\Component\Card.