ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Container.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25use Psr\Http\Message\ServerRequestInterface;
28
32interface Container extends Component
33{
39 public function getInputs(): array;
40
48 public function withRequest(ServerRequestInterface $request): self;
49
58 public function withInput(InputData $input_data): self;
59
63 public function withAdditionalTransformation(Transformation $trafo): self;
64
71 public function getData();
72
76 public function getError(): ?string;
77
91 public function withDedicatedName(string $dedicated_name): self;
92}
A transformation is a function from one datatype to another.
A component is the most general form of an entity in the UI.
Definition: Component.php:28
This describes commonalities between all Containers for Inputs, such as Forms.
Definition: Container.php:33
withInput(InputData $input_data)
Get a form like this where some input data is attached.
getInputs()
Get the inputs contained in the container.
withRequest(ServerRequestInterface $request)
Get a form like this where data from the request is attached.
withAdditionalTransformation(Transformation $trafo)
Apply a transformation to the data of the form.
withDedicatedName(string $dedicated_name)
Sets an optional dedicated name for this form which adds a NAME attribute to the form's HTML (otherwi...
getData()
Get the data in the form if all inputs are ok, where the transformation is applied if one was added.
Describes how Input-Elements want to interact with posted data.
Definition: InputData.php:30
This describes commonalities between all inputs.
Definition: Input.php:47