Re: New package: DB_DataObject_FormBuilder (was: Re: [PEAR-DEV] Re: DataObjectOnSpeed Sum-Up)
| From: | Markus Wolff | Date: | Thu, 21 Aug 2003 21:11:05 +0000 |
| Subject: | Re: New package: DB_DataObject_FormBuilder (was: Re: [PEAR-DEV] Re: DataObjectOnSpeed Sum-Up) | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-20347@lists.php.net to get a copy of this message | ||
Alexey Borzov wrote:
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... Markus, can you consider this?I´ll look into this next week. I think that will make a good addition! Regards, Markus