Re: [PEPr] Comment on Gtk2 Components::Gtk2_QuickForm
| From: | Bertrand Mansion | Date: | Thu, 16 Mar 2006 09:22:33 +0000 |
| Subject: | Re: [PEPr] Comment on Gtk2 Components::Gtk2_QuickForm | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-41807@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
>
>Justin Patrin (http://pear.php.net/user/justinpatrin) has commented on the
>proposal for Gtk2 Components::Gtk2_QuickForm.
>
>Comment:
>
>This could be useful for FormBuilder. ;-)
>
>Use PEAR_Exception.
>
>User is_callable instead of is_null to check callbacks.
>
>If you feel you need isIncludable (this is debatable as when an include
>doesn't happen the developer should see it and deal with it anyway) then
>use file_exists before is_readable and don't silence the call. (Note that
>this can fail with safe_mode, if you care. See LiveUser or MDB2's bugs for
>more.)
>
>I don't really have the time to look at any more tonight (there's lots of
>code here). It does look like you've started a generic form package,
>though. I would suggest that you make this a QuickForm base package and a
>GTK2 renderer package. This was we can have different frontends. :-)
>
>You may also want to cooperate with the HTML_QuickForm people or at least
>check out some of the discussions that have happend about the next version
>of it so that you can implement some of the ideas that were brought up.
>There is also a wiki with some thoughts about the next version of
>QuickForm somewhere.
Gtk2_QuickForm could certainly have a life on its own. I'd rather name it simply
Gtk2_Form to avoid the confusion since it's not tied to HTML_QuickForm.
As Justin suggested for your ErrorStack troubles, I'd also suggest that you
simply use PHP5 Exceptions, it's much simpler (BTW, I found references to
Exeception in your code, instead of Exception, please fix it).
About the next version of QuickForm, I have some good ideas and I think it could
be ready this year. But I can't promise it's going to do more than (X)HTML.
Scott, as you know QuickForm and wrote Gtk2_QuickForm, what do you think is
missing or bad in QuickForm and could be improved in the next version (besides
autoload() ;) ) ?
--
Bertrand Mansion
http://www.mamasam.com - creative internet solutions
http://golgote.freeflux.net - blog