cvs: pear /MDB2/MDB2 Iterator.php
| From: | Lukas Smith | Date: | Sat, 21 May 2005 22:59:04 +0000 |
| Subject: | cvs: pear /MDB2/MDB2 Iterator.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-32002@lists.php.net to get a copy of this message | ||
lsmith Sat May 21 18:59:04 2005 EDT
Modified files:
/pear/MDB2/MDB2 Iterator.php
Log:
- renamed getRowCounter() to rowCount() for PDO compliance
http://cvs.php.net/diff.php/pear/MDB2/MDB2/Iterator.php?r1=1.12&r2=1.13&ty=u
Index: pear/MDB2/MDB2/Iterator.php
diff -u pear/MDB2/MDB2/Iterator.php:1.12 pear/MDB2/MDB2/Iterator.php:1.13
--- pear/MDB2/MDB2/Iterator.php:1.12 Thu Apr 7 11:54:41 2005
+++ pear/MDB2/MDB2/Iterator.php Sat May 21 18:59:02 2005
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@backendmedia.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Iterator.php,v 1.12 2005/04/07 15:54:41 lsmith Exp $
+// $Id: Iterator.php,v 1.13 2005/05/21 22:59:02 lsmith Exp $
/**
* @package MDB2
@@ -162,7 +162,7 @@
public function key()
{
if ($this->result) {
- return $this->result->getRowCounter();
+ return $this->result->rowCount();
}
return false;
}
@@ -240,7 +240,7 @@
public function hasPrev()
{
if ($this->result) {
- return $this->result->getRowCounter() > 0;
+ return $this->result->rowCount() > 0;
}
return false;
}
@@ -272,7 +272,7 @@
public function prev()
{
if ($this->hasPrev()) {
- $this->seek($this->result->getRowCounter() - 1);
+ $this->seek($this->result->rowCount() - 1);
} else {
return false;
}