19 declare(strict_types=1);
38 $request = $DIC->http()->request();
39 $factory = $DIC->ui()->factory();
42 $modal = $factory->modal()->roundtrip(
43 'roundtrip with form',
46 $factory->input()->field()->text(
'some text'),
47 $factory->input()->field()->numeric(
'some numbere'),
53 $open = $factory->button()->standard(
'open modal',
'#')->withOnClick($modal->getShowSignal());
57 if (
'POST' === $request->getMethod()) {
58 $modal = $modal->withRequest($request);
59 $data = $modal->getData();
61 $data =
'no results yet.';
65 '<pre>' . print_r(
$data,
true) .
'</pre>' .
show_form_in_modal()
description: > Example for rendering a round trip modal.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null