Re: MDB 2.x

From: Date: Tue, 19 Aug 2003 20:12:29 +0000
Subject: Re: MDB 2.x
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-20073@lists.php.net to get a copy of this message
Hi Lukas, I just looked at the "module system" and maybe found a bug!? Look at this: function &loadModule($module, $property = null)
    {
        $module = strtolower($module);
        if (!isset($this->{$module}) || !is_object($this->{$module})) {
            if (!$property) {
                $property = $module;
            }
// ...
            }
            $this->{$module} =& new $class_name();
	    // shouldn't it be "$this->{$property} =& ..." ?
        }
        return $this->{$module};
// shouldn't it be "$this->{$property};" ?
    }
Or am I wrong? Regards, Matthias Lukas Smith wrote:
Hi, just wanted to inform you all that MDB 2.x is now mostly done. Atleast what I have planned. The API has changed a lot though :-/ - A lot of methods were removed because they are now unnecessary. - A few methods have changed parameter orders or behaviour (for example the fetch* methods don't free the result set anymore) - All array keys of parameters are now lowercased with underscores as word separators - LOB support is dramatically simplified and you can now use the bulk fetching methods with LOB's - A bunch of things where moved to separate classes most notably the "extended" methods such as queryOne, queryRow, queryCol, queryAll and the get* methods and executeMultiple - You can now optionally define a class into which a result resource can be wrapped (just like DB does as default) Generally MDB 2.x should feel a lot more intuitive for DB users. The code is now also a lot cleaner and should therefore be easier for other developers to get along. I have tested everything with mysql (3.x and 4.x), postgresql and oracle on windows and linux. Please have a look at the example.php and the test suite to get a better idea of the new API. Since the last changes are still a bit fresh I will not package a preview release just yet. But I would welcome any feedback. Regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07
-- formally known as matthias.nothhaft@gmx.de

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