45 $types = array(
Component\Component::class);
84 $types = array(
Button\Button::class);
87 $clone->action_buttons = $buttons;
106 $clone = clone $this;
107 $clone->cancel_button_label = $label;
An exception for terminatinating execution or to throw for unit testing.
getCancelButtonLabel()
Get the label of the cancel button in the footer, as language key.string
withActionButtons(array $buttons)
Get a modal like this with the provided action buttons in the footer.Note that the footer always cont...
withCancelButtonLabel($label)
__construct($title, $content, SignalGeneratorInterface $signal_generator)
getContent()
Get the components representing the content of the modal.\ILIAS\UI\Component\Component[]
getActionButtons()
Get all action buttons in the footer of the modal.\ILIAS\UI\Component\Button\Button[]
getTitle()
Get the title of the modal.string
A component is the most general form of an entity in the UI.
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
toArray($value)
Wrap the given value in an array if it is no array.
checkArgListElements($which, array &$values, &$classes)
Check every element of the list if it is an instance of one of the given classes.