RE: [PEAR-BUG] Bug #747 [Opn->Asn]: setDatasource defaults error

From: Date: Fri, 13 Feb 2004 20:44:21 +0000
Subject: RE: [PEAR-BUG] Bug #747 [Opn->Asn]: setDatasource defaults error
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-25651@lists.php.net to get a copy of this message
Yes, these new additions are very useful; please retain them! I'd previously extended the QuickFormController_Page (as DataPage) class to include internal references to $_do (DataObject) and $_fb (FormBuilder). With QuickForm's integrated (and thankfully generic) $_datasource, I can have cleaner code, while adding a more standard defaultValues() and constantValues() to my DataObjects as needed. I've even added a $_datasource to my custom Controller class, now DataController. Cheers, Harold LaRue > -----Original Message----- > From: PHP Bug Database [mailto:pear-dev@lists.php.net] > Sent: Friday, February 13, 2004 6:35 AM > To: hlarue@siegewerks.com > Subject: [PEAR-BUG] Bug #747 [Opn->Asn]: setDatasource defaults error > > > ATTENTION! Do NOT reply to this email! > To reply, use the web interface found at > http://pear.php.net/bugs/bug.php?id=747&edit=2 > > > ID: 747 > Updated by: mansion@php.net > Reported By: hlarue at siegewerks dot com > -Status: Open > +Status: Assigned > Bug Type: HTML_QuickForm > Operating System: ANY > PHP Version: Irrelevant > -Assigned To: > +Assigned To: mansion > New Comment: > > Thanks for noticing. > > The method is in CVS only at the moment and I m not sure yet > if it will > be kept for the next releases. > > > > Let me know if you would find it useful. > > > > > Previous Comments: > -------------------------------------------------------------- > ---------- > > [2004-02-13 02:25:46] hlarue at siegewerks dot com > > Description: > ------------ > setDatasource tries to run non-existent function > $this->setDefaultValues. Should read setDefaults. > > > > > > Reproduce code: > --------------- > if (is_callable(array($datasource, 'defaultValues'))) { > > > $this->setDefaultValues($datasource->defaultValues($this), > $defaultsFilter); > > } > > > > > > -------------------------------------------------------------- > ---------- > > >

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