Validation plug-ins [message #264] |
Thu, 07 September 2006 08:57 |
janalwin
Messages: 17 Registered: May 2006 Location: Groningen
|
Junior Member |
|
|
Hallo,
I'd like to integrate my own validations in the validation class. For example for checking postcodes, telephonenumber formats etc. These are validations that occur over and over in projects and it's a waste to reimplement them in every database class.
It would by nice if you could plug-in validators into the standard validation object.
Maybe it should work this way:
- define in the subtype which validator is to be loaded: subtype="dutch_postcode"
- load the class dutch_postcode-validator in the validation class.
- do the validation with this class
We could setup some kind of repositery for exchanging validator classes between developers.
Maybe you think it's not a good idea to mess with the current validation class. It still would be nice to have a standard way to implement validators in an other way.
--
Jan Alwin de Jong
|
|
|