Re: PEAR::Validate, status, plan

From: Date: Wed, 10 Dec 2003 20:09:03 +0000
Subject: Re: PEAR::Validate, status, plan
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24339@lists.php.net to get a copy of this message
It would be nice to have some sort of factory class, which generates a special object which overlays the local Validate, this would overlay functions which are the same type of information. e.g. $v = new Validate("UK"); if ($v->zip("DE4 5RT")){ // blah blah } would actually execute the postcode code in Validate_UK so that $v = new Validate("US"); if ($v->zip("DE4 5RT")){ // blah blah } other ones are ssn (called national insurance in UK) im sure all of these have differnet names in different countries, it would be nice so you could have one function name for each type of information, it would make it easy to validate a form that could be completed by people from different countries. Mike Pierre-Alain Joye wrote:
Hello, As you noticed, I'm working on Validate, trying to push a 1st beta asap. The plan is to have a 1st beta this year. That means the interface will be freezed at this time. So if anyone has comments or requests regarding the current interface (no FUD please :) ), please do it now. About locale validations classes -- I would like to get a lead per locale. He has to maitain his locale validation and create test cases. Obviously bugs related to his country will be assigned to him. However that does not mean he can do whatever he wants in the class :). Besides the respect of the defined interfaced (callback from multiple, std result), he should follow carefully the advices and features requests from the users. Current leads: -- AT: Michael Wallner DE: Stefan Neufeind NL: Dave Mertens pt_BR: Silvano Girardi Jr. PL: Piotr Klaban UK: Mike Dransfield To be taken: - FR (I have no more time to take of it) - any country that does not exist yet. Themes -- Apart from locales, we can add some themed validation schemes. Finance is the 1st of them. I open with any suggestion as far as we (peardev) agreed on its needs (ie we surely do not care about the ID of a foobar club in foobarland ;) ). ok, that's all, feel free to comment hth pierre


« previous php.pear.dev (#24339) next »