cvs: pear /DB_Pager Pager.php

From: Date: Sat, 17 Nov 2001 17:16:13 +0000
Subject: cvs: pear /DB_Pager Pager.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1353@lists.php.net to get a copy of this message
cox Sat Nov 17 12:16:13 2001 EDT Modified files: /pear/DB_Pager Pager.php Log: Put the right method name for the constructor Index: pear/DB_Pager/Pager.php diff -u pear/DB_Pager/Pager.php:1.1 pear/DB_Pager/Pager.php:1.2 --- pear/DB_Pager/Pager.php:1.1 Tue Oct 30 19:40:24 2001 +++ pear/DB_Pager/Pager.php Sat Nov 17 12:16:12 2001 @@ -1,7 +1,7 @@ <?php // // Pear DB Pager - Retrieve and return information of database -// result sets +// result sets // // Copyright (C) 2001 Tomas Von Veschler Cox <cox@idecnet.com> // @@ -20,7 +20,7 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // -// $Id: Pager.php,v 1.1 2001/10/31 00:40:24 cox Exp $ +// $Id: Pager.php,v 1.2 2001/11/17 17:16:12 cox Exp $ require_once 'PEAR.php'; require_once 'DB.php'; @@ -31,7 +31,7 @@ * Documentation and examples of use, can be found in: * http://vulcanonet.com/soft/pager/ * -* @version 0.5.2 +* @version 0.6 (beta 1) * @author Tomas V.V.Cox <cox@idecnet.com> * @see http://vulcanonet.com/soft/pager/ */ @@ -50,7 +50,7 @@ * doesn't support numrows(), you can manually calculate it * and supply later to the constructor */ - function Pager (&$res, $from, $limit, $numrows = null) + function DB_Pager (&$res, $from, $limit, $numrows = null) { $this->res = $res; $this->from = $from; @@ -63,7 +63,7 @@ * * @return mixed An assoc array with all the data (see getData) * or DB_Error on error - * @see Pager::getData + * @see DB_Pager::getData */ function build () { @@ -182,8 +182,8 @@ $data['to'] = $data['current'] * $limit; } $data['numrows'] = $numrows; - $data['from'] = $from + 1; - $data['limit'] = $limit; + $data['from'] = $from + 1; + $data['limit'] = $limit; return $data; }

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