ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
FormWithoutSubmitButton.php
Go to the documentation of this file.
1 <?php
2 
18 declare(strict_types=1);
19 
21 
29 
34 {
36  use HasPostURL;
37 
39 
40  public function __construct(
41  SignalGeneratorInterface $signal_generator,
42  FieldFactory $input_factory,
44  string $post_url,
45  array $inputs
46  ) {
47  parent::__construct($input_factory, $name_source, $inputs);
48  $this->submit_signal = $signal_generator->create();
49  $this->setPostURL($post_url);
50  }
51 
52  public function getSubmitSignal(): Signal
53  {
54  return $this->submit_signal;
55  }
56 }
This is what a factory for input fields looks like.
Definition: Factory.php:28
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
This implements commonalities between all forms.
Definition: Form.php:33
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Factory.php:21
__construct(VocabulariesInterface $vocabularies)
__construct(SignalGeneratorInterface $signal_generator, FieldFactory $input_factory, NameSource $name_source, string $post_url, array $inputs)
create(string $class='')
Create a signal, each created signal MUST have a unique ID.
Describes a source for input names.
Definition: NameSource.php:26