cvs: pear /DB_Pager Pager.php

From: Date: Mon, 13 May 2002 10:47:52 +0000
Subject: cvs: pear /DB_Pager Pager.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3797@lists.php.net to get a copy of this message
cox Mon May 13 06:47:52 2002 EDT Modified files: /pear/DB_Pager Pager.php Log: goole->Google, algoritm->algorithm Index: pear/DB_Pager/Pager.php diff -u pear/DB_Pager/Pager.php:1.3 pear/DB_Pager/Pager.php:1.4 --- pear/DB_Pager/Pager.php:1.3 Sun May 12 09:59:40 2002 +++ pear/DB_Pager/Pager.php Mon May 13 06:47:52 2002 @@ -20,7 +20,7 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // -// $Id: Pager.php,v 1.3 2002/05/12 13:59:40 cox Exp $ +// $Id: Pager.php,v 1.4 2002/05/13 10:47:52 cox Exp $ require_once 'PEAR.php'; require_once 'DB.php'; @@ -148,7 +148,7 @@ * 'from' => X, // the row to start fetching * 'to' => X, // the row to stop fetching * 'limit' => X, // how many results per page - * 'maxpages' => X, // how many pages to show (google style) + * 'maxpages' => X, // how many pages to show (Google style) * 'firstpage' => X, // the row number of the first page * 'lastpage' => X, // the row number where the last page starts * 'pages' => array( // assoc with page "number => start row" @@ -200,7 +200,7 @@ null, null, 'DB_Error', true); } - // Limit number of pages (goole algoritm) + // Limit number of pages (Goole algorithm) if ($maxpages) { $radio = floor($maxpages/2); $minpage = $data['current'] - $radio;

« previous php.pear.cvs (#3797) next »