ILIAS  trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Container.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 
32 interface 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 }
withAdditionalTransformation(Transformation $trafo)
Apply a transformation to the data of the form.
Describes how Input-Elements want to interact with posted data.
Definition: InputData.php:29
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
withInput(InputData $input_data)
Get a form like this where some input data is attached.
withRequest(ServerRequestInterface $request)
Get a form like this where data from the request is attached.
withDedicatedName(string $dedicated_name)
Sets an optional dedicated name for this form which adds a NAME attribute to the form&#39;s HTML (otherwi...
getData()
Get the data in the form if all inputs are ok, where the transformation is applied if one was added...
A transformation is a function from one datatype to another.
This describes commonalities between all Containers for Inputs, such as Forms.
Definition: Container.php:32
getInputs()
Get the inputs contained in the container.