ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Interruptive.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
30interface Interruptive extends Modal
31{
35 public function getMessage(): string;
36
40 public function getTitle(): string;
41
45 public function withFormAction(string $form_action): Interruptive;
46
53 public function withAffectedItems(array $items): Interruptive;
54
58 public function getActionButtonLabel(): ?string;
59
64 public function withActionButtonLabel(string $action_label): Interruptive;
65
69 public function getCancelButtonLabel(): ?string;
70
76 public function withCancelButtonLabel(string $cancel_label): Interruptive;
77
83 public function getAffectedItems(): array;
84
88 public function getFormAction(): string;
89}
getCancelButtonLabel()
Get the custom label of the cancel button in the footer.
getFormAction()
Get the form action where the action button is sending the IDs of the affected items.
getActionButtonLabel()
Get the custom label of the action button in the footer.
getMessage()
Get the message of this modal, displayed below the modals title.
withCancelButtonLabel(string $cancel_label)
Get a modal like this with the cancel 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.
withActionButtonLabel(string $action_label)
Get a modal like this with the action button labeled according to the parameter.
getAffectedItems()
Return the affected items listed in the content by this modal.
withFormAction(string $form_action)
Get a modal like this submitting the form to the given form action.
getTitle()
Get the title of this modal.
This describes commonalities between the different modals.
Definition: Modal.php:35
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Factory.php:21