[Html-widget] when to run filters. WAS: file uploads and element_type combined patch

Bernhard Graf html-widget at augensalat.de
Wed Nov 29 18:17:28 GMT 2006


Carl Franks wrote:

> I'm wondering if the current behaviour of filters is wrong.

[...]

> Any opinions?

I second that.

For example I would find it usefull to have filters that create a class 
object from a form field, for example a DateTime object.

First of all this would require, that the object is overloaded to 
stringify into a printable form. But the real problem is, that if the 
date the user entered has an invalid format, no DateTime object would 
be created and the field would be empty on the next $result->as_xml().
-- 
Bernhard Graf



More information about the Html-widget mailing list