ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
Input.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2017 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
6
11
32{
33
39 public function getLabel();
40
41
49 public function withLabel($label);
50
51
57 public function getByline();
58
59
67 public function withByline($byline);
68
69
75 public function isRequired();
76
77
85 public function withRequired($is_required);
86
87
93 public function isDisabled();
94
95
103 public function withDisabled($is_disabled);
104
105
111 public function getValue();
112
113
123 public function withValue($value);
124
125
131 public function getError();
132
133
141 public function withError($error);
142
143
152
153
166 public function getUpdateOnLoadCode() : \Closure;
167}
An exception for terminatinating execution or to throw for unit testing.
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:14
This describes commonalities between all inputs.
Definition: Input.php:32
withByline($byline)
Get an input like this, but with an additional/replaced label.
getValue()
Get the value that is displayed in the input client side.
getByline()
Get the byline of the input.
withValue($value)
Get an input like this with another value displayed on the client side.
getLabel()
Get the label of the input.
withAdditionalTransformation(Transformation $trafo)
Apply a transformation to the content of the input.
isDisabled()
Is this input disabled?
withDisabled($is_disabled)
Get an input like this, but set it to a disabled state.
withLabel($label)
Get an input like this, but with a replaced label.
isRequired()
Is this field required?
withRequired($is_required)
Get an input like this, but set the field to be required (or not).
getError()
The error of the input as used in HTML.
withError($error)
Get an input like this one, with a different error.
Interface to be extended by components that have the possibility to bind to Javascript.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.