Re: DB_DataObject_FormBuilder and many-many links
| From: | Justin Patrin | Date: | Tue, 25 May 2004 00:16:48 +0000 |
| Subject: | Re: DB_DataObject_FormBuilder and many-many links | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-29613@lists.php.net to get a copy of this message | ||
Norbert Mocsnik wrote:
Hello Justin, (cc-d to Markus, sure he'd like to see it) It's on my hard drive. :) I didn't post it yet since it still needs some work. However, feel free to browse/improve the code, which is NOT stable yet - however it works well. Search for 'autocrosslinks' in both generateForm() and processForm(). modified FormBuilder (NOT the latest one from the CVS.. copy my new stuff from generateForm() and processForm() and paste into your actual FormBuilder version) http://norbert.mocsnik.hu/crosslink-triplelink-FormBuilder.phps usage example: http://norbert.mocsnik.hu/crosslink-triplelink-example.phps if you do it well, you don't have to deal with forms like this manually: http://norbert.mocsnik.hu/crosslink-triplelink-example.png If you have some free time check out triplelinks also hehe.. :) Joining 3 tables, storing in +1 table.. - for this functionality getSelectOptions() has been split into two functions - B.C. O.K. of course! Regards, Norbert Justin Patrin wrote:Thanks. It should come in handy for an app I'm writing. -- paperCrane <Justin Patrin>I seem to remember someone posting to one of these lists about a many-many link addition made to the FormBuilder class. Does anyone recall this or remember where the code was?