5 require_once(
"libs/composer/vendor/autoload.php");
6 require_once(__DIR__ .
"/../../Base.php");
8 use \ILIAS\UI\Component as
C;
9 use \ILIAS\UI\Implementation\Component as
I;
18 $f =
new I\Link\Factory();
20 $f->standard(
"Goto ILIAS",
"http://www.ilias.de"),
21 $f->standard(
"go up",
"#")
23 $this->text =
'footer text';
24 $this->perm_url =
'http://www.ilias.de/goto.php?target=xxx_123';
31 $counter_factory =
new I\Counter\Factory();
32 $slate_factory =
new I\MainControls\Slate\Factory(
36 new I\Symbol\Icon\Factory(),
37 new I\Symbol\Glyph\Factory(),
38 new I\Symbol\Avatar\Factory()
41 $factory =
new I\MainControls\Factory($sig_gen, $slate_factory);
47 $footer = $this->
getFactory()->footer($this->links, $this->text);
48 $this->assertInstanceOf(
49 "ILIAS\\UI\\Component\\MainControls\\Footer",
57 $footer = $this->
getFactory()->footer([], $this->text);
58 $this->assertInstanceOf(
59 "ILIAS\\UI\\Component\\MainControls\\Footer",
92 $df = new \ILIAS\Data\Factory();
93 $footer = $footer->withPermanentURL($df->uri($this->perm_url));
94 $perm_url = $footer->getPermanentURL();
95 $this->assertInstanceOf(
"\\ILIAS\\Data\\URI", $perm_url);
97 $perm_url->getBaseURI() .
'?' . $perm_url->getQuery(),
105 $factory =
new class extends NoUIFactory {
106 public function listing()
108 return new I\Listing\Factory();
120 $html = $r->render($footer);
123 <div
class=
"il-maincontrols-footer">
124 <div
class=
"il-footer-content">
125 <div
class=
"il-footer-text">
129 <div
class=
"il-footer-links">
131 <li><a href=
"http://www.ilias.de" >Goto
ILIAS</a></li>
132 <li><a href=
"#" >go
up</a></li>
151 $html = $r->render($footer);
154 <div
class=
"il-maincontrols-footer">
155 <div
class=
"il-footer-content">
156 <div
class=
"il-footer-text">
175 $html = $r->render($footer);
178 <div
class=
"il-maincontrols-footer">
179 <div
class=
"il-footer-content">
180 <div
class=
"il-footer-permanent-url"><label
for=
"current_perma_link">perma_link</label><input
id=
"current_perma_link" type=
"text" value=
"http://www.ilias.de/goto.php?target=xxx_123" readonly=
"readOnly">
183 <div
class=
"il-footer-text">
footer text</div>
185 <div
class=
"il-footer-links">
187 <li><a href=
"http://www.ilias.de" >Goto
ILIAS</a></li>
188 <li><a href=
"#" >go
up</a></li>
Class ChatMainBarProvider .
getDefaultRenderer(JavaScriptBinding $js_binding=null)
Provides common functionality for UI tests.
brutallyTrimHTML($html)
A more radical version of normalizeHTML.