19 declare(strict_types=1);
45 $this->checkStringArg(
'title', $title);
46 $this->checkStringArg(
'message', $message);
47 $this->checkStringArg(
'form_action', $form_action);
85 $this->checkArgListElements(
'items', $items, $types);
105 $clone = clone $this;
106 $clone->action_button_label = $action_label;
123 $clone = clone $this;
124 $clone->cancel_button_label = $cancel_label;
Interface InterruptiveItem.
__construct(string $title, string $message, string $form_action, SignalGeneratorInterface $signal_generator)
getTitle()
Get the title of this modal.
withCancelButtonLabel(string $cancel_label)
Get a modal like this with the cancel button labeled according to the parameter.The label will be tra...
withFormAction(string $form_action)
Get a modal like this submitting the form to the given form action.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
SignalGeneratorInterface $signal_generator
string $cancel_button_label
string $action_button_label
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getCancelButtonLabel()
Get the custom label of the cancel button in the footer.
getAffectedItems()
Return the affected items listed in the content by this modal.InterruptiveItem[]
__construct(Container $dic, ilPlugin $plugin)
getMessage()
Get the message of this modal, displayed below the modals title.
getFormAction()
Get the form action where the action button is sending the IDs of the affected items.
withActionButtonLabel(string $action_label)
Get a modal like this with the action button labeled according to the parameter.
withAffectedItems(array $items)
Get a modal like this listing the given items in the content section below the message.The IDs of the interruptive items are sent via POST to the form action of this modal.$items
getActionButtonLabel()
Get the custom label of the action button in the footer.