NetefxValidatorRuleOR::__construct
Check if at least 1 of the subrules is valid
Signature
public function __construct(string
$field,
[string
$errorMsg = NULL,
[string
$errorMsgType = 'error',
[NetefxValidatorRule|array
$rules = 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
$rules
—
object
- single rule or array of rules