Re: Status of DB_Pager

From: Date: Thu, 02 Sep 2004 14:00:32 +0000
Subject: Re: Status of DB_Pager
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-33190@lists.php.net to get a copy of this message
Hi Aaron, Aaron Wormus wrote:
I've been using DB_Pager in a couple projects recently, and included a quick tutorial and some sample code in my latest PHPBarnstormer column [1], only to discover, while chatting with Lucas, that the package has been deprecated in favor of Pager (which I was blissfully unaware of). I realize that this topic has come up before on the lists, and IIRC the subject was never settled, but I wonder if until we get a good solution, we could just put a nice big notice both on the PEAR package homepage and in the documentation that the package has been deprecated.
actually DB_Pager has NOT been deprecated, even if Pager can do everything DB_Pager does and more. They have a different focus: DB_Pager is db-oriented, while Pager was originally designed to accept any array of data. In the latest release, I've added an example on how to use Pager with db resultsets in an efficient way (the generated network load is even smaller than DB_Pager), so yes, you can completely replace DB_Pager with Pager. Still, the former is not deprecated, because I don't see any reason to ditch it. I hope this clears some doubts. Best regards, -- Lorenzo Alberton http://pear.php.net/user/quipo

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