0 follower

Interface Yiisoft\Form\Field\Base\InputData\InputDataInterface

Implemented byYiisoft\Form\PureField\InputData

Represents some common information about input and its validation rules / state.

Public Methods

Hide inherited 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

Hide inherited methods

getHint() public abstract method

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;

            
getId() public abstract method

public abstract string|null getId ( )
return string|null

ID of the input or null if missing.

                public function getId(): ?string;

            
getLabel() public abstract method

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;

            
getName() public abstract method

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;

            
getPlaceholder() public abstract method

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;

            
getValidationErrors() public abstract method

The list of validation errors for this attribute.

public abstract string[] getValidationErrors ( )
return string[]

Input validation errors.

                public function getValidationErrors(): array;

            
getValidationRules() public abstract method

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;

            
getValue() public abstract method

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;

            
isValidated() public abstract method

Validation state (whether the input has been already validated).

public abstract boolean isValidated ( )
return boolean

Whether input was validated.

                public function isValidated(): bool;