Re: paging large amounts of data

From: Date: Tue, 23 Aug 2005 22:16:27 +0000
Subject: Re: paging large amounts of data
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20564@lists.php.net to get a copy of this message
On 8/23/05, Lukas Smith <lsmith@php.net> wrote: > Justin Patrin wrote: > > On 8/23/05, Lukas Smith <lsmith@php.net> wrote: > > > >>>Hmmm...well, actually this info isn't pulled from the pager at all. > >>>The currentPage and perPage are member vars of the DG. Pager is used > >>>only for the links. The actual offset calculation is done in > >>>Renderer.php fetchDataSource(). ($page*$this->rowLimit) > >> > >>ok i saw that .. but isnt the pagenation also possible to show something > >>like > >> > >>first : some number : page : some other number : last > >> > >>depending on the config .. > >> > > > > > > Ummm...could you give an example? > > i was going by memory .. confused memory it seems .. > so i guess its always a fixed sequence of pages and depending on the > mode you will have to choose the offset accordingly .. it seems that > this offset should be available as a get method in pager? > AFAIK, at least as SDG does it, there is no offset that pager provides. It may provide one but SDG doesn't use it. SDG just uses the current page and per-page count to get the offset. -- Justin Patrin

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