Re: MDB2

From: Date: Thu, 30 Dec 2004 23:57:22 +0000
Subject: Re: MDB2
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16530@lists.php.net to get a copy of this message
Daniel Rossi wrote:
Hmm can you explain the reason behind this ?
 Var_Dump($db->loadModule('extended'));     $result = $db->extended->limitQuery($query, null, 1, 1);
 I couldnt see myself doing $db->extended->getAll :| Why the shift ?
 If i intend to subclass MDB , do i have to set it up like the Extended class ?
yes .. those methods are legacy crap. by calling setLimit() the limit will be set for the next query only. so you can combine it with any query easily. furthermore getAll() is useless crap imho. its an abuse of a feature which is needlessly complex. most people dont even use prepared queries with getAll() so they should be using queryAll() for those people using prepared they are misusing prepared queries where they should be using a query builder for much cleaner and faster results. btw: we should probably move these discussions to pear-general@lists.php.net so that other people can chip in or just read along 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

« previous php.pear.general (#16530) next »