Re: bug in DB_Pager
| From: | Pierre-Alain Joye | Date: | Tue, 03 Jun 2003 17:32:05 +0000 |
| Subject: | Re: bug in DB_Pager | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-16958@lists.php.net to get a copy of this message | ||
On Sat, 31 May 2003 16:10:36 +0200
Demian Turner <demian@muse23.com> wrote:
> Just wanted to check if anyone else had this problem using the lastest
>
> version of DB_Pager, I believe it may be a bug.
>
> In the following scenario:
>
> total num rows = 111
> res per page = 10
> max pages = 10
>
> the fourth arugument in the getData method, $maxpage, does not appear
> to work as expected in that if you specify 10 you get only 5 'frames'
> of results.
>
> By the time you get to the 6th frame, the paging works as expected,
> but begins reducing again as you approach the end of the resultset.
>
> The other paging class, Pager, works as expected in this respect.
This is not a bug.
This is the "google" algorithm, see google to see how it works. This is
an optionnal feature.
pierre