Create a new Validator.
| Name | Type | Description |
|---|---|---|
data |
* | The data which needs to be validated. |
options |
Object | The setting options |
optionRules |
Object | The validation rules for setting options |
lang |
String | The language used by the application. Defaults to 'en'. |
internal |
Boolean | If this parameter is true, it means, that validation called from core. |
Extends
Members
Methods
-
errors ()sogv.Error inherited
-
Return error errors
Returns:
Type Description sogv.Error Error messages -
Check if data valid.
Returns:
Type Description Boolean Validation status