Reference: Model rules validation

Comparing #15 with #16

Revision #16 was created by vihiz vihiz on Nov 16, 2011, 2:35:42 PM.

Length validation rules 6 and 7 were wrong, corrected. (tooLong = too long, not too short, same for tooShort)

Content

[...]
1. `allowEmpty`, whether the attribute value can be null or empty.
2. `encoding` , string encoding.
3. `is`, exact length.
4. `max`, maximum length.
5. `min`, minimum length.
6. `tooLong`, user-defined error message used when the value is too
shortlong. 7. `tooShort`, user-defined error message used when the value is too longshort.

+ `numerical` : [CNumberValidator], validates that the attribute value is a number.
1. `allowEmpty`, whether the attribute value can be null or empty.
2. `integerOnly`, whether the attribute value can only be an integer.
3. `max`, upper limit of the number.
[...]