ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
FormInput.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
27 use Closure;
28 
33 {
37  public function getLabel(): string;
38 
44  public function withLabel(string $label);
45 
49  public function getByline(): ?string;
50 
56  public function withByline(string $byline);
57 
61  public function isRequired(): bool;
62 
70  public function withRequired(bool $is_required, ?Constraint $requirement_constraint = null): self;
71 
75  public function isDisabled(): bool;
76 
82  public function withDisabled(bool $is_disabled);
83 
93  public function getUpdateOnLoadCode(): Closure;
94 }
withByline(string $byline)
Get an input like this, but with an additional/replaced label.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
A constraint encodes some resrtictions on values.
Definition: Constraint.php:31
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Factory.php:21
getByline()
Get the byline of the input.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
withDisabled(bool $is_disabled)
Get an input like this, but set it to a disabled state.
withLabel(string $label)
Get an input like this, but with a replaced label.
withRequired(bool $is_required, ?Constraint $requirement_constraint=null)
Get an input like this, but set the field to be required (or not).
This describes commonalities between all inputs.
Definition: Input.php:46
This describes inputs that can be used in forms.
Definition: FormInput.php:32