Class: BaseComparisonValidator

sogv.BaseComparisonValidator

Abstract base class that implements functionality for validation.

Provides a base class for the validation of property comparisons.

new sogv.BaseComparisonValidator (data, options, optionRules, lang, internal) abstract

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

data * inherited

Data that needs to be validated.

lang String inherited

Language of error messages.

Methods

errors ()sogv.Error inherited

Return error errors

Returns:
Type Description
sogv.Error Error messages

isValid ()Boolean inherited overrides

Check if data valid.

Returns:
Type Description
Boolean Validation status