RE: [PEAR-DEV] Re: [metabase-dev] get*Value() usability question

From: Date: Thu, 12 Dec 2002 07:29:52 +0000
Subject: RE: [PEAR-DEV] Re: [metabase-dev] get*Value() usability question
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11577@lists.php.net to get a copy of this message
> -----Original Message----- > From: Manuel Lemos [mailto:mlemos@acm.org] > Sent: Thursday, December 12, 2002 8:28 AM > To: metabase-dev@yahoogroups.com > Cc: pear-dev@lists.php.net; dev@binarycloud.tigris.org > Subject: [PEAR-DEV] Re: [metabase-dev] get*Value() usability question > > Hello, > > On 12/10/2002 08:24 AM, Lukas Smith wrote: > > I am coding on an application atm and I see myself frequently doing IN > > statements with data arrays that I gathered in a session. > > > > So you could do something like this: > > > > $query = "SELECT * FROM foo_table WHERE foo_field IN".implode(",", > > $bar_array).")"; > > > > Now this doesn't work if I want to use MDB's Datatype conversion methods > > like getTextValue() etc. > > > > array_walk comes to mind as a possible solution, but not a very nice one > > as I don't know how to handle the fact that these are methods of an > > object. > > > > 1) Does someone have a good idea how to do this? > > > > 2) The current get*Value() methods don't allow you to pass an array to > > them. Would this be a worthwhile addition? Should the current method > > work on normal strings and arrays (adding an if statement) or should > > second class of method be introduced (bloating the API even further). > > I don't think it is a good idea to bloating the API even further with > yet another little feature. Many little features like these scare people > away because they are not very much used and just make larger the code > that is already large. Ok, thx fort he feedback. > As I mentioned before, I think it would be more valuable to invest time > on things that are really needed like the rest of the drivers that need > to be ported. Yes. This would not be a huge time investment. Just a little feature that might make my current project easier. So I was just wondering what other people think about it :-) Drivers are still the top priority for any longer dev time I can spend on MDB. Regards, Lukas

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