ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
InputInternal.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
27 
32 interface InputInternal extends Input
33 {
39  public function withNameFrom(NameSource $source);
40 
44  public function getName(): ?string;
45 
51  public function withInput(InputData $input);
52 
56  public function getContent(): Result;
57 
61  public function withError(string $error): self;
62 
66  public function getError(): ?string;
67 }
getContent()
Get the current content of the input.
Describes how Input-Elements want to interact with posted data.
Definition: InputData.php:29
getName()
The name of the input as used in HTML.
Describes the interface of inputs that is used for internal processing of data from the client...
string $error
This is an error on the input as displayed client side.
Definition: Input.php:57
withError(string $error)
Get an input like this one, with a different error.
This describes commonalities between all inputs.
Definition: Input.php:46
withNameFrom(NameSource $source)
Get an input like this one, with a different name.
Describes a source for input names.
Definition: NameSource.php:26
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
withInput(InputData $input)
Get an input like this with input from post data.
getError()
The error of the input as used in HTML.