Re: Pager_Sliding::getOffsetByageId()

From: Date: Wed, 10 Dec 2003 20:37:13 +0000
Subject: Re: Pager_Sliding::getOffsetByageId()
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24340@lists.php.net to get a copy of this message
On Wed, 10 Dec 2003 14:39:20 -0000, Richard Heyes wrote: > Hi Lorenzo, > What's the deal with this method? In Pager it returned the offsets > for the first and last pieces of data, whereas with Pager_Sliding > it returns the first and last page numbers. > Is this intended? If so then it breaks BC with Pager. Hi Richard, thanks for your note. The method in Pager_Sliding is just a big mistake, while I wanted to provide such a method, it was certainly not intended to override Pager's one. Of course it does not affect Pager_Jumping, only _Sliding. I've fixed the bug in CVS, and added a method called "getPageRangeByPageId()" to fulfill the other purpose. Please give a try to current Pager CVS version, it should work as expected, now (at least the testsuite says so :-) If there aren't other issues, I'll roll out a new release soon. Best regards, Lorenzo

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