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 Details
Complimentary text explaining certain details regarding this input.
| public abstract getHint( ): string|null | ||
| return | string|null |
Input hint or null if missing. |
|---|---|---|
public function getHint(): ?string;
| public abstract getId( ): string|null | ||
| 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 getLabel( ): string|null | ||
| 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 getName( ): string|null | ||
| 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 getPlaceholder( ): string|null | ||
| 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 getValidationErrors( ): string[] | ||
| return | string[] |
Input validation errors. |
|---|---|---|
public function getValidationErrors(): array;
Validation rules in any format. They are intended to be processed by Yiisoft\Form\ValidationRulesEnricherInterface::process().
| public abstract getValidationRules( ): mixed | ||
| return | mixed |
Input validation rules. |
|---|---|---|
public function getValidationRules(): mixed;
Filled value that is about to be sent to the server.
| public abstract getValue( ): mixed | ||
| return | mixed |
Value of the input. |
|---|---|---|
public function getValue(): mixed;
Validation state (whether the input has been already validated).
| public abstract isValidated( ): boolean | ||
| return | boolean |
Whether input was validated. |
|---|---|---|
public function isValidated(): bool;
Signup or Login in order to comment.