Child classes should override the Validator::validateValue and/or Validator::validateAttribute methods to provide the actual
logic of performing data validation. Child classes may also override Validator::clientValidateAttribute
to provide client-side validation support.
Validator declares a set of [[builtInValidators|built-in validators] which can
be referenced using short names. They are listed as follows:
- boolean: BooleanValidator
- captcha: [[CaptchaValidator]]
- compare: CompareValidator
- date: DateValidator
- default: DefaultValueValidator
- double: NumberValidator
- email: EmailValidator
- exist: ExistValidator
- file: FileValidator
- filter: FilterValidator
- image: ImageValidator
- in: RangeValidator
- integer: NumberValidator
- match: RegularExpressionValidator
- required: RequiredValidator
- safe: SafeValidator
- string: StringValidator
- trim: FilterValidator
- unique: UniqueValidator
- url: UrlValidator