NetefxValidatorRuleBETWEEN::__construct
check if field value is numeric and between the 2 given values or expressions
Signature
public function __construct(string
$field,
[string
$errorMsg = NULL,
[string
$errorMsgType = 'error',
[array
$args = NULL]]] )
Parameters
$field
—
string
- name of the field
$errorMsg
—
string
- the message to be displayed
$errorMsgType
—
string
- the css class added to the field on validation error
$args
—
array
- (the 3rd value in the array can set what character is used as decimal point)