Class pvr.controller.validators.DateValidator


Extends pvr.controller.validators._Validator, pvr.controller.validators.mixins._RequiredValidatorMixin, pvr.controller.validators._RangeValidatorMixin, pvr.controller.validators._ChoicesValidatorMixin.
Extends pvr.controller.validators._Validator to validate values of type "date".

Values of type "date" are represented by pvr.controller.value.types.DateOnly objects.


Defined in: <pvr\controller\validators\DateValidator.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Method Summary

Method Attributes Method Name and Description
 
validate(value, ignoreChoices)
Validate the specified value.

Constructor Detail

pvr.controller.validators.DateValidator()

Method Detail

validate(value, ignoreChoices)

Validate the specified value.
Parameters:
value
The value.
ignoreChoices
Indicates whether choices should be considered in the validation.
Returns:
The validation error message or null if valid.