8 require_once(
"libs/composer/vendor/autoload.php");
9 require_once(__DIR__ .
"/../../Base.php");
34 $mode_title =
'That\'s one small step for [a] man';
35 $uri_string =
'http://one_giant_leap?for=mankind';
36 $mode_info =
new ModeInfo($mode_title,
new URI($uri_string));
39 $html = $r->render($mode_info);
42 <div
class=
"il-mode-info">
43 <span
class=
"il-mode-info-content">$mode_title<a
class=
"glyph" href=
"$uri_string" aria-label=
"close"><span
class=
"glyphicon glyphicon-remove" aria-hidden=
"true"></span></a>
57 $mode_title =
'That\'s one small step for [a] man';
58 $uri_string =
'http://one_giant_leap?for=mankind';
60 $mode_info = $this->
getUIFactory()->mainControls()->modeInfo($mode_title,
new URI($uri_string));
62 $this->assertInstanceOf(\
ILIAS\
UI\
Component\MainControls\ModeInfo::class, $mode_info);
63 $this->assertEquals($mode_title, $mode_info->getModeTitle());
64 $this->assertEquals($uri_string, $mode_info->getCloseAction()->getBaseURI() .
'?' . $mode_info->getCloseAction()->getQuery());
93 return new \ILIAS\UI\Implementation\Component\MainControls\Factory(
Class ChatMainBarProvider .
getDefaultRenderer(JavaScriptBinding $js_binding=null)
Provides common functionality for UI tests.
The scope of this class is split ilias-conform URI's into components.
brutallyTrimHTML($html)
A more radical version of normalizeHTML.
__construct(Container $dic, ilPlugin $plugin)