ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
InputInternal.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27
32interface 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}
ilErrorHandling $error
Definition: class.ilias.php:69
A result encapsulates a value or an error and simplifies the handling of those.
Definition: Result.php:29
Describes how Input-Elements want to interact with posted data.
Definition: InputData.php:30
This describes commonalities between all inputs.
Definition: Input.php:47
Describes the interface of inputs that is used for internal processing of data from the client.
withError(string $error)
Get an input like this one, with a different error.
getName()
The name of the input as used in HTML.
withInput(InputData $input)
Get an input like this with input from post data.
withNameFrom(NameSource $source)
Get an input like this one, with a different name.
getContent()
Get the current content of the input.
getError()
The error of the input as used in HTML.
Describes a source for input names.
Definition: NameSource.php:27
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...