Markus Wolff wrote:
is there any update on the "runner class" discussed in the comments? From what I've read there this would seem to provide the functionality that I described in my earlier posts on Zend_Validate (which seem to have been ignored/overlooked :-)).

As I think this component is needed by practically everyone who has to do form validation and filtering, I'm very interested in seeing this thing move forward :-)

I agree that some form of runner would make using Zend_Filter / Zend_Validate much easier to use for certain use cases. The current implementation is kind of low-level; an application developer needs to apply each filter or validator independently.

We've done quite a bit of discussion about runners for validators internally here at Zend. We realized that there are many use cases that need validation or filtering (filtration?). One common use case is processing input from web forms, like $_GET and $_POST. But one might want to filter or validate data that comes from a file, a database, or user input of other types. One might also want to filter or validate data that is being output to a database, a file, or user output other than web presentation. There are also individual cases of using validators, such as the usage of isHostname() in Zend_Uri_Http. The application of validation and filtering may be different in these different use cases.

Because the use cases are so diverse, there may be no single "runner" solution that solves all of these, and we should not try to make a single solution.

I suggest that we try to write proposals for solving different use cases, and treat them as separate components that utilize Zend_Filter and Zend_Validate. That would be a good way to apply object-oriented decomposition, and keep Zend_Filter / Zend_Validate classes separate from the concerns of consumer classes.

I started some notes for a solution similar to the Perl module HTML::FormValidator, which I used with success on a project some years ago. I'll write up a brief proposal describing how we might make a similar solution for Zend Framework.

Regards,
Bill Karwin

Reply via email to