Re: Pager

From: Date: Mon, 11 Feb 2002 10:33:59 +0000
Subject: Re: Pager
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-4585@lists.php.net to get a copy of this message
LIMBOURG Arnaud wrote: > > Hello, > > I saw that richard commited the Pager/Pager.php class. > > Could you explain how the things will migrate, i mean from DB_Pager... > > I saw the discussion that took place a couple of weeks ago, but was > everything made clear ? > Finally we didn't reach any agreement :-) Richard's class is focused in paginate arrays and provide helpers methods for building the HTML. My approach is sighly different, as DB_Pager is focused in databases and in giving extensive information to the developer about the pager (out of any representation). Now Pear DB supports row limit (much more efficient), so the "database" part of the DB_Pager is no longer needed. For ex: $res = $db->limitQuery($sql, $from, $limit); while ($res->fetchInto($row)) { ... } In the X future I'll change DB_Pager to help more the developer in the tasks of creating different types of pagination and if I see that I can provide some helper methods flexible enough to meet the design requierements I'll do it also. Tomas V.V.Cox

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