48 $types = array(
Component\Component::class);
87 $types = array(
Button\Button::class);
90 $clone->action_buttons = $buttons;
109 $clone = clone $this;
110 $clone->cancel_button_label = $label;
127 parent::initSignals();
129 $this->replace_signal = $this->signal_generator->create(
"ILIAS\\UI\\Implementation\\Component\\ReplaceSignal");
137 $clone = clone $this;
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[]
getReplaceSignal()
Get the signal to replace the content of this modal.\ILIAS\UI\Component\ReplaceSignal
withContent($content)
Get Modal like this with the provided components representing the content of the modal....
getActionButtons()
Get all action buttons in the footer of the modal.\ILIAS\UI\Component\Button\Button[]
initSignals()
Set the show/close/replace signals for this modal.
getTitle()
Get the title of the modal.string
A component is the most general form of an entity in the UI.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
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.