NetefxValidatorRuleGREATER::__construct
check if field value is numeric and greater than the given value or expression
Signature
public function __construct(string
$field,
[string
$errorMsg = NULL,
[string
$errorMsgType = 'error',
[int|string|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
— object- number, expression or array (if array, the 2nd value in the array can set what character is used as decimal point)
Line | Task |
---|---|
20+ | the first couple of lines are the same for all greater and smaller validations, they should be moved to a seperated function |