ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
FormInput.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27use 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}
A constraint encodes some resrtictions on values.
Definition: Constraint.php:32
This describes inputs that can be used in forms.
Definition: FormInput.php:33
withRequired(bool $is_required, ?Constraint $requirement_constraint=null)
Get an input like this, but set the field to be required (or not).
withByline(string $byline)
Get an input like this, but with an additional/replaced label.
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.
This describes commonalities between all inputs.
Definition: Input.php:47
Interface to be extended by components that have the possibility to bind to Javascript.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Factory.php:21
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.