Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16276 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63224 invoked by uid 1010); 18 May 2005 14:34:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26582 invoked from network); 18 May 2005 14:20:04 -0000 Received: from unknown (HELO hotmail.com) (127.0.0.1) by localhost with SMTP; 18 May 2005 14:20:04 -0000 X-Host-Fingerprint: 212.112.227.169 ipx11223.ipxserver.de Linux 2.4/2.6 Received: from ([212.112.227.169:50333] helo=ipx11223.ipxserver.de) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id C2/03-01538-1FE4B824 for ; Wed, 18 May 2005 10:19:29 -0400 Received: from localhost (localhost [127.0.0.1]) by ipx11223.ipxserver.de (Postfix) with ESMTP id 2366DDF008F; Wed, 18 May 2005 16:19:54 +0200 (CEST) Received: from ipx11223.ipxserver.de ([127.0.0.1]) by localhost (ipx11223 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03375-01; Wed, 18 May 2005 16:19:51 +0200 (CEST) Received: from [172.16.0.4] (unknown [201.134.187.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ipx11223.ipxserver.de (Postfix) with ESMTP id D66E7DF00A2; Wed, 18 May 2005 16:19:49 +0200 (CEST) Message-ID: <428B40D7.8030903@php.net> Date: Wed, 18 May 2005 09:19:19 -0400 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nicholas Telford Cc: internals@lists.php.net References: <20050518132615.55570.qmail@lists.php.net> In-Reply-To: <20050518132615.55570.qmail@lists.php.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by somedaemon at backendmedia.com Subject: Re: Allow PDO::query() to return a subclass of PDOStatement From: lsmith@php.net (Lukas Smith) Nicholas Telford wrote: > What I'm proposing is to allow PDO::query() to return a subclass of > PDOStatement. This would allow abstractions to tailor the result set to > their own needs while not (in theory) being too complicated to implement. > > My initial idea involves passing an object that is a subclass of > PDOStatement into PDO:query as a second parameter, then all that would > be needed to get it to return a custom result set would be something > like this: http://oss.backendmedia.com/index.php?area=PDO&page=FAQ read the last item over there. Marcus (IIRC) is planning on making this less clumsy as right now you have to repeatedly specifiy the statement class you want AFAIK. regards, Lukas