Re: Extending PEAR DB

From: Date: Tue, 24 Apr 2001 07:50:00 +0000
Subject: Re: Extending PEAR DB
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-302@lists.php.net to get a copy of this message
["Benjamin R. Webb" <brwebb@transmuto.com>] > All, > > I would like to add a fetchmode to DB, specifically an object > mode. This would allow support of (for example) mysql_fetch_object(). > > I don't, of course, want to do this if a) it's already done or b) > someone else is working on it. Otherwise, I have a need to get it > done this week. > > Note: if it's in the latest CVS, I apologize. I know it's not in the > version I currently have, and I noticed on Tom's tutorial that he > indicates that it is not yet supported. Try this: $obj = (object)$result->fetchRow(); That being said, having a fetch mode for objects could be very useful if you can specify what class or object to use. - Stig -- Stig Sæther Bakken <ssb@fast.no> Fast Search & Transfer ASA, Trondheim, Norway

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