19 declare(strict_types=1);
28 require_once(
"vendor/composer/vendor/autoload.php");
29 require_once(__DIR__ .
"/../../Base.php");
47 $headline =
'That\'s one small step for [a] man';
48 $information =
'Lorem IPsum dolor sit amet';
50 $system_info =
new SystemInfo($this->sig_gen, $headline, $information);
54 <div
id=
"id" class=
"container-fluid il-system-info il-system-info-neutral" data-
close-uri=
"" aria-live=
"polite" aria-labelledby=
"id_headline" aria-describedby=
"id_description">
55 <div
class=
"il-system-info-content-wrapper">
56 <div
class=
"il-system-info-content">
57 <span
id=
"id_headline" class=
"il-system-info-headline">$headline</span>
58 <span
id=
"id_description" class=
"il-system-info-body">$information</span>
61 <div
class=
"il-system-info-actions">
62 <span
class=
"il-system-info-more">
63 <a tabindex=
"0" class=
"glyph" href=
"#" aria-label=
"show_more"><span
class=
"glyphicon glyphicon-option-horizontal" aria-hidden=
"true"></span></a>
65 <span
class=
"il-system-info-close"></span>
70 $actual =
$r->render($system_info);
72 $this->brutallyTrimHTML($expected),
73 $this->brutallyTrimHTML($actual)
79 $headline =
'That\'s one small step for [a] man';
80 $information =
'Lorem IPsum dolor sit amet';
82 $system_info = (
new SystemInfo($this->sig_gen, $headline, $information))
83 ->withDenotation(SystemInfoAlias::DENOTATION_NEUTRAL);
87 <div
id=
"id" class=
"container-fluid il-system-info il-system-info-neutral" data-
close-uri=
"" aria-live=
"polite" aria-labelledby=
"id_headline" aria-describedby=
"id_description">
88 <div
class=
"il-system-info-content-wrapper">
89 <div
class=
"il-system-info-content">
90 <span
id=
"id_headline" class=
"il-system-info-headline">$headline</span>
91 <span
id=
"id_description" class=
"il-system-info-body">$information</span>
94 <div
class=
"il-system-info-actions">
95 <span
class=
"il-system-info-more">
96 <a tabindex=
"0" class=
"glyph" href=
"#" aria-label=
"show_more"><span
class=
"glyphicon glyphicon-option-horizontal" aria-hidden=
"true"></span></a>
98 <span
class=
"il-system-info-close"></span>
103 $actual =
$r->render($system_info);
105 $this->brutallyTrimHTML($expected),
106 $this->brutallyTrimHTML($actual)
112 $headline =
'That\'s one small step for [a] man';
113 $information =
'Lorem IPsum dolor sit amet';
115 $system_info = (
new SystemInfo($this->sig_gen, $headline, $information))
116 ->withDenotation(SystemInfoAlias::DENOTATION_IMPORTANT);
118 $actual =
$r->render($system_info);
120 <div
id=
"id" class=
"container-fluid il-system-info il-system-info-important" data-
close-uri=
"" aria-live=
"polite" aria-labelledby=
"id_headline" aria-describedby=
"id_description">
121 <div
class=
"il-system-info-content-wrapper">
122 <div
class=
"il-system-info-content">
123 <span
id=
"id_headline" class=
"il-system-info-headline">$headline</span>
124 <span
id=
"id_description" class=
"il-system-info-body">$information</span>
127 <div
class=
"il-system-info-actions">
128 <span
class=
"il-system-info-more">
129 <a tabindex=
"0" class=
"glyph" href=
"#" aria-label=
"show_more"><span
class=
"glyphicon glyphicon-option-horizontal" aria-hidden=
"true"></span></a>
131 <span
class=
"il-system-info-close"></span>
137 $this->brutallyTrimHTML($expected),
138 $this->brutallyTrimHTML($actual)
144 $headline =
'That\'s one small step for [a] man';
145 $information =
'Lorem IPsum dolor sit amet';
147 $system_info = (
new SystemInfo($this->sig_gen, $headline, $information))
148 ->withDenotation(SystemInfoAlias::DENOTATION_BREAKING);
152 <div
id=
"id" class=
"container-fluid il-system-info il-system-info-breaking" data-
close-uri=
"" role=
"alert" aria-labelledby=
"id_headline" aria-describedby=
"id_description">
153 <div
class=
"il-system-info-content-wrapper">
154 <div
class=
"il-system-info-content">
155 <span
id=
"id_headline" class=
"il-system-info-headline">$headline</span>
156 <span
id=
"id_description" class=
"il-system-info-body">$information</span>
159 <div
class=
"il-system-info-actions">
160 <span
class=
"il-system-info-more">
161 <a tabindex=
"0" class=
"glyph" href=
"#" aria-label=
"show_more"><span
class=
"glyphicon glyphicon-option-horizontal" aria-hidden=
"true"></span></a>
163 <span
class=
"il-system-info-close"></span>
168 $actual =
$r->render($system_info);
170 $this->brutallyTrimHTML($expected),
171 $this->brutallyTrimHTML($actual)
178 $headline =
'That\'s one small step for [a] man';
179 $information =
'Lorem IPsum dolor sit amet';
180 $uri_string =
'http://one_giant_leap?for=mankind';
181 $action =
new URI($uri_string);
183 $system_info = (
new SystemInfo($this->sig_gen, $headline, $information))
184 ->withDismissAction($action);
187 <div
id=
"id" class=
"container-fluid il-system-info il-system-info-neutral" data-
close-uri=
"$uri_string" aria-live=
"polite" aria-labelledby=
"id_headline" aria-describedby=
"id_description">
188 <div
class=
"il-system-info-content-wrapper">
189 <div
class=
"il-system-info-content">
190 <span
id=
"id_headline" class=
"il-system-info-headline">$headline</span>
191 <span
id=
"id_description" class=
"il-system-info-body">$information</span>
194 <div
class=
"il-system-info-actions">
195 <span
class=
"il-system-info-more">
196 <a tabindex=
"0" class=
"glyph" href=
"#" aria-label=
"show_more"><span
class=
"glyphicon glyphicon-option-horizontal" aria-hidden=
"true"></span></a>
198 <span
class=
"il-system-info-close"><a tabindex=
"0" class=
"glyph" href=
"#" aria-label=
"close" id=
"id"><span
class=
"glyphicon glyphicon-remove" aria-hidden=
"true"></span></a></span>
203 $actual =
$r->render($system_info);
205 $this->brutallyTrimHTML($expected),
206 $this->brutallyTrimHTML($actual)
212 array $with_stub_renderings = [],
213 array $with_additional_contexts = [],
216 public function createId():
string 221 public array $on_load_code = array();
223 public function addOnLoadCode(
string $code):
void 225 $this->on_load_code[] = $code;
228 public function getOnLoadCodeAsync():
string 253 public function mainControls(): \ILIAS\UI\Implementation\Component\MainControls\Factory
255 return new \ILIAS\UI\Implementation\Component\MainControls\Factory(
Interface Observer Contains several chained tasks and infos about them.
getDefaultRenderer(?JavaScriptBinding $js_binding=null, array $with_stub_renderings=[], array $with_additional_contexts=[],)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
close()
description: > Example for rendring a close glyph.
Provides methods to interface with javascript.
__construct(Container $dic, ilPlugin $plugin)
testRenderingCloseAction()