Re: [PEPr] +1 for HTML::HTML_QuickForm_SelectFilter

From: Date: Mon, 06 Dec 2004 09:46:16 +0000
Subject: Re: [PEPr] +1 for HTML::HTML_QuickForm_SelectFilter
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34830@lists.php.net to get a copy of this message
I was not sure how to consider this. Is it an error? Maybe the right thing would be to return an empty string.
It's up to you to decide whether this is an error... If it is, return a PEAR_Error object, if it isn't you should probably just add a text box to the form without any JS.
OK, I think this is not really an error, I follow your advice to just add the text box (see new example 3).
You can also help users by automatically registering (using HTML_QuickForm::registerElementType()) the element type on class include.
If this element is added to HTML_QuickForm, I think it will be registered in HTML_QuickForm constructor.
I don't follow you on this. Please elaborate.
All elements currently available in HTML_QuickForm can be used without having to include anything more than HTML_QuickForm itself, which registers the elements. I would like QF_SelectFilter to be available as well. If it is not possible, or wanted, I will add the "automagical" registration. -Nicolas -- Nicolas "Brush" HOIZEY Clever Age : http://www.clever-age.com/ Gastero Prod : http://www.gasteroprod.com/ phpMyChat : http://phpmychat.sf.net/

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