Home » Database » DB_DataObject » Bug #4824
Auto-validate field length
Details
| Request #4824 | Auto-validate field length |
|---|---|
| Submitted | 2005-07-13 19:26 UTC |
| From | tony at freixas dot org |
| Status | Feedback |
| Package | DB_DataObject |
| PHP Version | 4.3.4 |
| OS | Windows 2000 |
| Roadmaps | (Not assigned) |
Comments
[2005-07-13 19:26 UTC] tony at freixas dot org
Description:
------------
DB_DataObject 1.7.15:
I'd love to see the default validation code do more than just check for string or number:
* Check to make sure that the field length doesn't exceed the allowed length.
* Validate that non-null field data is not null.
The database structure has all the information needed to do this validation.
Also, would it be possible for a validation method to extend the default validation? In other words, I'd like to have all the default validation plus some special field-specific validation.