Re: Extending MySQLi_Result object

From: Date: Tue, 16 Nov 2004 21:51:16 +0000
Subject: Re: Extending MySQLi_Result object
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-37305@lists.php.net to get a copy of this message
Am Di, den 16.11.2004 schrieb Joe Bandenburg um 21:15: > i there, > > It's my first post here, so go gentle. It's your 2nd post - you sent the same post one Nov. 8th, but I was on a conference and not able to answer :) > > I have run into a problem when trying to extend the MySQLi_result object > because the MySQLi object's method "query" always returns a > MySQLi_result and, to my knowledge, it is impossible to make it do > otherwise. So, my question is, how do I alter the "query" method to > return my new MySQLi_result object instead of the base object? Or, is > there another/better way of achieving what I'm looking for? Am I missing > something very obvious here? :) Currently mysqli_result has no default constructor, and I still don't know how to implement a good solution for, cause beside mysql_query there is also mysql_store_result and mysql_use_result which returns a mysqli_result object. Also mysqli_stmt object isn't really extendable. We are working on a solution for PHP 5.1 now (which will be released next year). /Georg -- Georg Richter, Senior Software Developer MySQL AB, www.mysql.com Are you MySQL certified? www.mysql.com/certification

« previous php.db (#37305) next »