ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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 
151  public function withAdditionalTransformation(Transformation $trafo);
152 
153 
166  public function getUpdateOnLoadCode() : \Closure;
167 }
isDisabled()
Is this input disabled?
withAdditionalTransformation(Transformation $trafo)
Apply a transformation to the content of the input.
withError($error)
Get an input like this one, with a different error.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
withByline($byline)
Get an input like this, but with an additional/replaced label.
withLabel($label)
Get an input like this, but with a replaced label.
withDisabled($is_disabled)
Get an input like this, but set it to a disabled state.
isRequired()
Is this field required?
withValue($value)
Get an input like this with another value displayed on the client side.
getError()
The error of the input as used in HTML.
getByline()
Get the byline of the input.
A transformation is a function from one datatype to another.
getLabel()
Get the label of the input.
withRequired($is_required)
Get an input like this, but set the field to be required (or not).
getUpdateOnLoadCode()
Get update code.
getValue()
Get the value that is displayed in the input client side.