19 declare(strict_types=1);
69 ?
string $post_url = null
73 $content = (null !==
$content) ? $this->toArray($content) : [];
74 $this->checkArgListElements(
'content', $content, [Component::class]);
124 $types = [Button\Button::class];
125 $this->checkArgListElements(
'buttons', $buttons, $types);
126 $clone = clone $this;
127 $clone->action_buttons = $buttons;
141 $clone = clone $this;
142 $clone->cancel_button_label = $label;
160 parent::initSignals();
163 $this->replace_signal = $this->signal_generator->create(ReplaceSignal::class);
164 $this->submit_signal = $this->signal_generator->create();
172 return $this->
form->getInputs();
178 public function withRequest(ServerRequestInterface $request): self
180 $clone = clone $this;
181 $clone->form = $clone->form->withRequest($request);
190 $clone = clone $this;
191 $clone->form = $clone->form->withAdditionalTransformation($trafo);
200 return $this->
form->getData();
208 return $this->
form->getError();
216 return $this->
form->getPostURL();
224 $clone = clone $this;
225 $clone->submit_button_label = $caption;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
withDedicatedName(string $dedicated_name)
No dedicated name can be set for this subform.
ReplaceSignal $replace_signal
initSignals()
Set the show/close/replace signals for this modal Set up the submit signal for form submissions...
withAdditionalTransformation(Transformation $trafo)
FormWithoutSubmitButton $form
withActionButtons(array $buttons)
withRequest(ServerRequestInterface $request)
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
withSubmitCaption(string $caption)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
form( $class_path, string $cmd)
withCancelButtonLabel(string $label)
This signal replaces a component by ajax.
string $submit_button_label
__construct(Container $dic, ilPlugin $plugin)