Interface Yiisoft\Form\Field\Base\InputData\InputDataInterface
| Implemented by | Yiisoft\Form\PureField\InputData |
|---|
Represents some common information about input and its validation rules / state.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getHint() | Complimentary text explaining certain details regarding this input. | Yiisoft\Form\Field\Base\InputData\InputDataInterface |
| getId() | Yiisoft\Form\Field\Base\InputData\InputDataInterface | |
| getLabel() | The label associated with this field (visible to the end user). | Yiisoft\Form\Field\Base\InputData\InputDataInterface |
| getName() | Unique name of an input within the form (not visible to the end user). | Yiisoft\Form\Field\Base\InputData\InputDataInterface |
| getPlaceholder() | The value used as an example to help user fill the actual value. | Yiisoft\Form\Field\Base\InputData\InputDataInterface |
| getValidationErrors() | The list of validation errors for this attribute. | Yiisoft\Form\Field\Base\InputData\InputDataInterface |
| getValidationRules() | Validation rules in any format. They are intended to be processed by {@see ValidationRulesEnricherInterface::process()}. | Yiisoft\Form\Field\Base\InputData\InputDataInterface |
| getValue() | Filled value that is about to be sent to the server. | Yiisoft\Form\Field\Base\InputData\InputDataInterface |
| isValidated() | Validation state (whether the input has been already validated). | Yiisoft\Form\Field\Base\InputData\InputDataInterface |
Method Details
Complimentary text explaining certain details regarding this input.
| public abstract string|null getHint ( ) | ||
| return | string|null |
Input hint or null if missing. |
|---|---|---|
public function getHint(): ?string;
| public abstract string|null getId ( ) | ||
| return | string|null |
ID of the input or null if missing. |
|---|---|---|
public function getId(): ?string;
The label associated with this field (visible to the end user).
| public abstract string|null getLabel ( ) | ||
| return | string|null |
Input label or null if missing. |
|---|---|---|
public function getLabel(): ?string;
Unique name of an input within the form (not visible to the end user).
| public abstract string|null getName ( ) | ||
| return | string|null |
Name of the input or null if missing. |
|---|---|---|
public function getName(): ?string;
The value used as an example to help user fill the actual value.
| public abstract string|null getPlaceholder ( ) | ||
| return | string|null |
Input placeholder or null if no placeholder is used. |
|---|---|---|
public function getPlaceholder(): ?string;
The list of validation errors for this attribute.
| public abstract string[] getValidationErrors ( ) | ||
| return | string[] |
Input validation errors. |
|---|---|---|
public function getValidationErrors(): array;
Validation rules in any format. They are intended to be processed by {@see ValidationRulesEnricherInterface::process()}.
| public abstract mixed getValidationRules ( ) | ||
| return | mixed |
Input validation rules. |
|---|---|---|
public function getValidationRules(): mixed;
Filled value that is about to be sent to the server.
| public abstract mixed getValue ( ) | ||
| return | mixed |
Value of the input. |
|---|---|---|
public function getValue(): mixed;
Validation state (whether the input has been already validated).
| public abstract boolean isValidated ( ) | ||
| return | boolean |
Whether input was validated. |
|---|---|---|
public function isValidated(): bool;
Signup or Login in order to comment.