Class pvr.controller.validators.IntegerValidator


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 "integer".

Values of type "integer" are represented by JavaScript number primitives that have integral value and that fall within the range -2147483648 through 2147483647.


Defined in: <pvr\controller\validators\IntegerValidator.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.IntegerValidator()

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.