ILIAS  release_7 Revision v7.30-3-g800a261c036
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}
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 inputs that can be used in forms.
Definition: FormInput.php:16
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).
getByline()
Get the byline of the input.
withByline($byline)
Get an input like this, but with an additional/replaced label.
getError()
The error of the input as used in HTML.
withError($error)
Get an input like this one, with a different error.
getLabel()
Get the label of the input.
withDisabled($is_disabled)
Get an input like this, but set it to a disabled state.
isDisabled()
Is this input disabled?
This describes commonalities between all inputs.
Definition: Input.php:32
Interface to be extended by components that have the possibility to bind to Javascript.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.