Re: DB Pager maxpages algorithm and lastpagefrom variable

From: Date: Wed, 24 Jul 2002 12:54:59 +0000
Subject: Re: DB Pager maxpages algorithm and lastpagefrom variable
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7936@lists.php.net to get a copy of this message
On Wed, 24 Jul 2002 14:24:25 +0200 "Tomas V.V.Cox" <cox@idecnet.com> wrote: > Richard Wall wrote: > > > > Hello, > > > > I've extended the DB Pager getData() method so that the pages array stays a > > constant length and have added a lastpagefrom value to allow for a link to > > the last page in the result set. > > > > What do DB_Pager users think on using that way instead of the Google > way? Google is a little bit strange because the first time you get half > the amount of pages and can confuse a little developers who wants a > constant number. I myself preffer to set 10 pages and get 10 pages > instead of 5 the first time :-) +1 for both options, let the user chooses the method. Default can be the current one (and keep BC). pa ps: an update will be needed for the tuto :)

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