19declare(strict_types=1);
35use Psr\Http\Message\ServerRequestInterface;
65 FieldFactory $field_factory,
70 ?
string $post_url =
null
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();
179 public function withRequest(ServerRequestInterface $request): self
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;
SignalGeneratorInterface $signal_generator
withDedicatedName(string $dedicated_name)
No dedicated name can be set for this subform.
withActionButtons(array $buttons)
withRequest(ServerRequestInterface $request)
getSubmitLabel()
@inheritDoc
ReplaceSignal $replace_signal
string $submit_button_label
withCancelButtonLabel(string $label)
withSubmitLabel(string $caption)
@inheritDoc
withInput(InputData $input_data)
withAdditionalTransformation(Transformation $trafo)
__construct(SignalGeneratorInterface $signal_generator, FieldFactory $field_factory, NameSource $name_source, string $title, $content, array $inputs=[], ?string $post_url=null)
string $cancel_button_label
initSignals()
Set the show/close/replace signals for this modal Set up the submit signal for form submissions.
A component is the most general form of an entity in the UI.
This signal replaces a component by ajax.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
form( $class_path, string $cmd, string $submit_caption="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...