Re: Extending PEAR DB
| From: | Benjamin R. Webb | Date: | Thu, 26 Apr 2001 06:09:48 +0000 |
| Subject: | Re: Extending PEAR DB | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-320@lists.php.net to get a copy of this message | ||
> $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,
Did I understand correctly that you want to be able to cast a query
result to an arbitrary object? I've been working out a way to do
that in my head, but I don't want to put it to code if I misunderstood.
I'm still not sure that we shouldn't put this in a seperate set of functions
as it will break the consistant array return type. Thoughts?
Ben