Revision #8 was created by GoorooTech on Nov 21, 2010, 3:23:06 AM.
Added time rule example (CTypeValidator)
Content
[...]
2. `dateFormat`, the format pattern that the date value should follow.
3. `datetimeFormat`, the format pattern that the datetime value should follow.
4. `timeFormat`, the format pattern that the time value should follow.
5. `type`, the data type that the attribute should be.
+ `unique` : [CUniqueValidator], validates that the attribute value is unique in the corresponding database table.
1. `allowEmpty`, whether the attribute value can be null or empty.
2. `attributeName`, the ActiveRecord class attribute name that should be used to look for the attribute value being validated.
3. `caseSensitive`, whether the comparison is case sensitive.
4. `className`, the ActiveRecord class name that should be used to look for the attribute value being validated.
5. `criteria`, additional query criteria.