Re: New package: DB_DataObject_FormBuilder (was: Re: [PEAR-DEV] Re: DataObjectOnSpeed Sum-Up)

From: Date: Thu, 21 Aug 2003 12:17:09 +0000
Subject: Re: New package: DB_DataObject_FormBuilder (was: Re: [PEAR-DEV] Re: DataObjectOnSpeed Sum-Up)
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-20245@lists.php.net to get a copy of this message
<borz_off@cs.msu.su> wrote : >> The HTML_QuickForm_Page has a method to build the form upon request, that's >> where HTML_QuickForm_Builder could be useful. > > Yes, thus DB_DataObject_FormBuilder needs to have an additional method > like _generateForm() that will accept an instance of QuickForm instead > of instantiating it itself. This will be sufficient to plug it into > Controller infrastructure. Or changing the API of getForm() from > &getForm($action=false, $target='_self', $formName=false, > $method='post') > to > getForm(&$form, $action=false, $target='_self', $formName=false, > $method='post') > and instantiating the form only when needed... Why add all those parameters as they are already defined in $form ? > Markus, can you consider this? > >> So before you release anything, I would like to know your opinion on this >> and whether you would like to help us work on a Builder infrastructure. > > Do we *really* need this infrastructure? No, we don't actually :) Sorry Markus, I had the idea to add Builder objects to QuickForm but this might end up with too much stuff and it's probably too early for that. As long as we can get the QuickForm object in the end, it's fine with me. So +1 for DB_DataObject_FormBuilder Bertrand Mansion Mamasam

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