19 declare(strict_types=1);
39 $f = $DIC->ui()->factory();
40 $r = $DIC->ui()->renderer();
51 $modal =
$f->modal()->roundtrip(
"Modal Title",
$f->legacy()->content(
"b"));
52 $asyncUrl =
$url .
'&page=login&replaceSignal=' . $modal->getReplaceSignal()->getId();
53 $modal = $modal->withAsyncRenderUrl($asyncUrl);
54 $button =
$f->button()->standard(
"Sign In",
'#')
55 ->withOnClick($modal->getShowSignal());
56 return $r->render([$modal, $button]);
63 $button1 =
$f->button()->standard(
'Login',
'#')
64 ->withOnClick($replaceSignal->withAsyncRenderUrl(
$url .
'&page=login&replaceSignal=' . $replaceSignal->getId()));
65 $button2 =
$f->button()->standard(
'Registration',
'#')
66 ->withOnClick($replaceSignal->withAsyncRenderUrl(
$url .
'&page=register&replaceSignal=' . $replaceSignal->getId()));
69 if ($page ==
"login") {
70 $legacy =
$f->legacy()->content(
"<p>The Login Page</p>");
71 $modal =
$f->modal()->roundtrip(
"Login", [$legacy])->withActionButtons([$button1, $button2]);
73 if ($page ==
"register") {
74 $legacy =
$f->legacy()->content(
"<p>The Registration Page</p>");
75 $modal =
$f->modal()->roundtrip(
"Registration", [$legacy])->withActionButtons([$button1, $button2]);
78 echo
$r->renderAsync([$modal]);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
show_multi_step_modal()
description: > Example for rendering a round trip multi-step modal.
exit
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...