Class Range
Responsibility: Validate numeric raw user input. Parse numeric value or values by locale conventions and check minimum, maximum and step if necessary.
-
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\Range
uses
MvcCore\Ext\Forms\Field\Props\Multiple
Methods summary
public
MvcCore\Ext\Forms\Validator
|
#
SetField( MvcCore\Ext\Forms\IField $field )
Set up field instance, where is validated value by this
validator during submit before every Validate() method call.
This method is also called once, when validator instance is separately
added into already created field instance to process any field checking.
Set up field instance, where is validated value by this
validator during submit before every Validate() method call.
This method is also called once, when validator instance is separately
added into already created field instance to process any field checking.
Parameters
Returns
Overrides
|
public
string|array|null
|
#
Validate( string|array $rawSubmittedValue )
Validate numeric raw user input. Parse numeric value or values by locale conventions
and check minimum, maximum and step if necessary.
Validate numeric raw user input. Parse numeric value or values by locale conventions
and check minimum, maximum and step if necessary.
Parameters
- $rawSubmittedValue
- $submitValue Raw user input.
Returns
string|array|null Safe submitted value or NULL if not possible to return safe value.
Overrides
|
Properties summary
protected static
array
|
$fieldSpecificProperties
Field specific values (camel case) and their validator default values.
Field specific values (camel case) and their validator default values.
|
#
[
'multiple' => NULL,
]
|