Class FloatNumber
Responsibility: Validate raw user input. Parse float value if possible by Intl
extension or try to determinate floating point automatically and return float
or NULL
.
-
MvcCore\Ext\Forms\Validator
implements
MvcCore\Ext\Forms\IValidator
-
MvcCore\Ext\Forms\Validators\Number
implements
MvcCore\Ext\Forms\Fields\IMinMaxStepNumbers
uses
MvcCore\Ext\Forms\Field\Props\MinMaxStepNumbers
-
MvcCore\Ext\Forms\Validators\FloatNumber
Methods summary
public
float|null
|
#
Validate( string|array $rawSubmittedValue )
Validate raw user input. Parse float value if possible by Intl extension
or try to determinate floating point automatically and return float or NULL .
Validate raw user input. Parse float value if possible by Intl extension
or try to determinate floating point automatically and return float or NULL .
Parameters
- $rawSubmittedValue
- $submitValue Raw user input.
Returns
float|null Safe submitted value or NULL if not possible to return safe value.
Overrides
|
Properties summary
protected static
array
|
$errorMessages
Validation failure message template definitions.
Validation failure message template definitions.
|
#
[
self::ERROR_FLOAT => "Field `{0}` requires a valid float number (from `{1}` to `{2}`).",
]
|