ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Container.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
27 
31 interface Container extends Component
32 {
38  public function getInputs(): array;
39 
45  public function withRequest(ServerRequestInterface $request): self;
46 
50  public function withAdditionalTransformation(Transformation $trafo): self;
51 
58  public function getData();
59 
63  public function getError(): ?string;
64 
78  public function withDedicatedName(string $dedicated_name): self;
79 }
withAdditionalTransformation(Transformation $trafo)
Apply a transformation to the data of the form.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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:31
getInputs()
Get the inputs contained in the container.