ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
FormInput.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 
16 {
22  public function getLabel();
23 
31  public function withLabel($label);
32 
38  public function getByline();
39 
47  public function withByline($byline);
48 
54  public function isRequired();
55 
63  public function withRequired($is_required);
64 
70  public function isDisabled();
71 
79  public function withDisabled($is_disabled);
80 
86  public function getError();
87 
95  public function withError($error);
96 
109  public function getUpdateOnLoadCode() : \Closure;
110 }
withDisabled($is_disabled)
Get an input like this, but set it to a disabled state.
isRequired()
Is this field required?
withByline($byline)
Get an input like this, but with an additional/replaced label.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
withRequired($is_required)
Get an input like this, but set the field to be required (or not).
withLabel($label)
Get an input like this, but with a replaced label.
This describes inputs that can be used in forms.
Definition: FormInput.php:15
getByline()
Get the byline of the input.
isDisabled()
Is this input disabled?
getLabel()
Get the label of the input.
withError($error)
Get an input like this one, with a different error.
getError()
The error of the input as used in HTML.