Re: DB_Pager doesnt work with MDB

From: Date: Tue, 04 Jan 2005 13:37:16 +0000
Subject: Re: DB_Pager doesnt work with MDB
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16582@lists.php.net to get a copy of this message
On 04/01/2005, at 7:53 PM, Lorenzo Alberton wrote:
no need to alter anything: there's an example with each pear DBAL (DB, MDB and MDB2): http://cvs.php.net/co.php/pear/Pager/examples/Pager_Wrapper.php HTH
Thanks for the tip off, why the two different Pagers then ? Here is my modified proposal, its just noodlings class Pager_Wrapper extends Pager { function Pager_Wrapper($driver,$db,$query, $pagerOptions) { require_once('Pager/Wrapper/'.$driver.'.php'); if (class_exists('Pager_Wrapper_'.$driver)) { return new {'Pager_Wrapper' . $driver}($db,$query, $pagerOptions); } } }

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