PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB_DataObject » Bug #4824

Auto-validate field length

Details

Request #4824Auto-validate field length
Submitted2005-07-13 19:26 UTC
Fromtony at freixas dot org
StatusFeedback
PackageDB_DataObject
PHP Version4.3.4
OSWindows 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.