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");
44 public function deck(array $cards)
105 public $resources = array();
109 $this->resources[] =
$name;
115 public $requested = array();
119 public function txt($a_topic, $a_default_lang_fallback_mod =
"")
121 $this->requested[] = $a_topic;
127 public $lang_module =
'common';
136 public $ids = array();
140 $id =
"id_" . $this->count;
144 public $on_load_code = array();
147 $this->on_load_code[] =
$code;
158 return $this->getRendererFor($component);
162 return $this->getContexts();
184 return "DummyComponent";
195 assert_options(ASSERT_WARNING, 0);
200 assert_options(ASSERT_WARNING, 1);
230 $ui_factory = $this->getUIFactory();
231 $tpl_factory = $this->getTemplateFactory();
232 $resource_registry = $this->getResourceRegistry();
233 $lng = $this->getLanguage();
235 $js_binding = $this->getJavaScriptBinding();
238 $component_renderer_loader
239 =
new Render\LoaderCachingWrapper(
263 return trim(str_replace(
"\n",
"",
$html));
273 $html->formatOutput =
true;
274 $html->preserveWhiteSpace =
false;
276 $expected->formatOutput =
true;
277 $expected->preserveWhiteSpace =
false;
278 $html->loadXML($this->normalizeHTML($html_as_string));
279 $expected->loadXML($this->normalizeHTML($expected_html_as_string));
280 $this->assertEquals($expected->saveHTML(),
$html->saveHTML());
Registry for resources required by rendered output like Javascript or CSS.
card()
description: purpose: > A card is a flexible content container for small chunks of structured data...
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)
messageBox()
description: purpose: > Message Boxes inform the user about the state of the system or an ongoing us...
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...
input()
description: purpose: > In opposite to components with a purely receptive or at most navigational ch...
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 ...
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)
table()
description: purpose: > Tables present a set of uniformly structured data.
createId()
Create a fresh unique id.
button()
description: purpose: > Buttons trigger interactions that change the system’s or view's status...
txt($a_topic, $a_default_lang_fallback_mod="")
loadLanguageModule($lang_module)
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.