19 declare(strict_types=1);
70 ?
string $post_url =
null 74 $content = (
null !==
$content) ? $this->toArray($content) : [];
75 $this->checkArgListElements(
'content', $content, [Component::class]);
125 $types = [Button\Button::class];
126 $this->checkArgListElements(
'buttons', $buttons, $types);
127 $clone = clone $this;
128 $clone->action_buttons = $buttons;
142 $clone = clone $this;
143 $clone->cancel_button_label = $label;
161 parent::initSignals();
164 $this->replace_signal = $this->signal_generator->create(ReplaceSignal::class);
165 $this->submit_signal = $this->signal_generator->create();
173 return $this->
form->getInputs();
181 $clone = clone $this;
182 $clone->form = $clone->form->withRequest($request);
188 $clone = clone $this;
189 $clone->form = $clone->form->withInput($request);
198 $clone = clone $this;
199 $clone->form = $clone->form->withAdditionalTransformation($trafo);
208 return $this->
form->getData();
216 return $this->
form->getError();
224 return $this->
form->getPostURL();
232 $clone = clone $this;
233 $clone->submit_button_label = $caption;
263 return $this->buttons;
withSubmitLabel(string $caption)
getCancelButtonLabel()
Get the custom label of the cancel button in the footer.
getTitle()
Get the title of the modal.
withDedicatedName(string $dedicated_name)
No dedicated name can be set for this subform.
ReplaceSignal $replace_signal
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initSignals()
Set the show/close/replace signals for this modal Set up the submit signal for form submissions...
getActionButtons()
Get all action buttons in the footer of the modal.Button[]
withAdditionalTransformation(Transformation $trafo)
getReplaceSignal()
Get the signal to replace the content of this modal.
withActionButtons(array $buttons)
Get a modal like this with the provided action buttons in the footer.Note that the footer always cont...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
withRequest(ServerRequestInterface $request)
getContent()
Get the components representing the content of the modal.Component[]
string $cancel_button_label
__construct(SignalGeneratorInterface $signal_generator, FieldFactory $field_factory, NameSource $name_source, string $title, $content, array $inputs=[], ?string $post_url=null)
SignalGeneratorInterface $signal_generator
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
withCancelButtonLabel(string $label)
Get the modal like this with the provided cancel button string.
This signal replaces a component by ajax.
string $submit_button_label
form( $class_path, string $cmd, string $submit_caption="")
__construct(Container $dic, ilPlugin $plugin)
withInput(InputData $input_data)