19 declare(strict_types=1);
32 $ui_factory = $DIC->ui()->factory();
33 $data_factory = new \ILIAS\Data\Factory();
35 $spacer = $ui_factory->divider()->horizontal();
37 $url = $data_factory->uri($DIC->http()->request()->getUri()->__toString());
39 $target = $data_factory->link(
'Start Test',
$url);
40 $launcher = $ui_factory->launcher()
42 ->withDescription(
'<p>You will have <strong>90 minutes to answer all questions.</strong></p><p>Please make sure that you have the time to complete the test and that you will be undisturbed. There is no way for you to pause or re-take this test.</p>');
44 $icon = $ui_factory->symbol()->icon()->standard(
'ps',
'',
'large');
46 $status_message = $ui_factory->messageBox()->failure(
"You have to complete all preconditions first.")
48 $ui_factory->link()->standard(
"Do this first",
"#"),
49 $ui_factory->link()->standard(
"And this is mandatory, too",
"#")
52 $launcher2 = $launcher
53 ->withDescription(
'<p>This course goes into advanced knowledge for students preparing for the final exam. You should have a firm understanding of the basics before enrolling.</p>')
54 ->withButtonLabel(
'Course is locked',
false)
55 ->withStatusIcon($icon)
56 ->withStatusMessageBox($status_message);
58 $target = $data_factory->link(
'Continue Survey',
$url);
59 $progressmeter = $ui_factory->chart()->progressMeter()->mini(100, 50, 100);
60 $status_message = $ui_factory->messageBox()->info(
"There are still 8 questions left in the survey.");
61 $launcher3 = $ui_factory->launcher()
63 ->withStatusIcon($progressmeter)
64 ->withStatusMessageBox($status_message)
65 ->withDescription(
'');
67 $target = $data_factory->link(
'Repeat Test',
$url);
68 $status_message = $ui_factory->messageBox()->success(
"You have completed this test already. If you want you can try it again.");
69 $icon = $ui_factory->symbol()->icon()->standard(
'task',
'',
'large');
70 $launcher4 = $ui_factory->launcher()
72 ->withStatusIcon($icon)
73 ->withStatusMessageBox($status_message);
base()
expected output: > ILIAS shows the rendered Component.