Reference: Model rules validation

Comparing #4 with #5

Revision #5 was created by Maurizio Domba Cerin Maurizio Domba Cerin on Oct 27, 2010, 10:42:54 AM.

fixed typo error

Content

[...]
1. `allowEmpty`, whether the attribute value can be null or empty.
2. `pattern`, the regular expression to be matched with.

+ `required` : [CRequiredValidator], validates that the specified attribute does not have null or empty value.
1. `requiredValue`, the desired value that the attribute must have.
2. `
requiredValuestrict`, whether the comparison to requiredValue is strict.

+ `safe` : [CSafeValidator], marks the associated attributes to be safe for massive assignments.

+ `type` : [CTypeValidator], verifies if the attribute is of the type specified by type. (integer, float, string, date, time, datetime)
1. `allowEmpty`, whether the attribute value can be null or empty.
[...]