Re: Validate finally finished splitting up.
| From: | Bertrand Mansion | Date: | Sat, 21 May 2005 07:51:13 +0000 |
| Subject: | Re: Validate finally finished splitting up. | ||
| Groups: | php.pear.dev php.pear.general | ||
| Request: | Send a blank email to pear-dev+get-37775@lists.php.net to get a copy of this message | ||
Helgi Þormar wrote:
>Hello people.
>
>Now many of you might have noticed the flood of releases of Validate_*
>packages and must be thinking what's going on.
>
>To explain it in a short manner, we decided to make the main Validate
>package smaller and split of the locales (UK, NL, PL and etc) and the
>other things into their own sub packages so they can benefit from their
>own release cycle instead of relying on Validate to make a release.
>
>This will make it easier for new validate packages to emerge and also to
>define different stability states of each sub packages.
>
>We truly hope this benefits everyone, even tho it might mean a bit more
>typing for those people that need more than one locale ;-)
If your objective is to refactor the Validate package, you might want to have a
look at how we use validation rules in HTML_QuickForm. We used the Strategy
pattern which makes it easy to add new rules and a Registry which loads only the
request rules on demand, checking if they have not already been loaded. It also
handles new rules registration.
Good luck,
Bertrand Mansion
Mamasam