3 declare(strict_types=1);
11 $renderer = $DIC->ui()->renderer();
14 $post_wrapper = $DIC->http()->wrapper()->post();
17 $message =
'Are you sure you want to delete the following items?';
18 $ctrl->setParameterByClass(
'ilsystemstyledocumentationgui',
'modal_nr', 1);
19 $form_action = $ctrl->getFormActionByClass(
'ilsystemstyledocumentationgui');
20 $icon =
$factory->image()->standard(
'./templates/default/images/icon_crs.svg',
'');
22 ->withAffectedItems(array(
23 $factory->modal()->interruptiveItem(
'10',
'Course 1', $icon,
'Some description text'),
24 $factory->modal()->interruptiveItem(
'20',
'Course 2', $icon,
'Another description text'),
25 $factory->modal()->interruptiveItem(
'30',
'Course 3', $icon,
'Last but not least, a description'),
27 $button =
$factory->button()->standard(
'Show Modal',
'')
28 ->withOnClick($modal->getShowSignal());
30 $out = [$button, $modal];
39 $factory->legacy(print_r($post_wrapper->retrieve(
'interruptive_items',
$refinery->kindlyTo()->string()),
true))
44 return $renderer->render(
$out);
show_modal_on_button_click()
if(isset($_FILES['img_file']) &&is_array($_FILES['img_file'])) $panel
Refinery Factory $refinery