summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoranzo2007-01-10 01:46:28 +0000
committersoranzo2007-01-10 01:46:28 +0000
commit373b57bc6c943f38cd9540a77cd8f885e03e2640 (patch)
tree6ac8415929d49be88838580e1eb153d68886dd70
parentff2edff79cb7e848b26a1ef0c5ffc28e48a872c2 (diff)
Incrementally use ->fields for recordsets, ->f is not supported by upstream adodb.
-rw-r--r--classes/ArrayRecordSet.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/classes/ArrayRecordSet.php b/classes/ArrayRecordSet.php
index f05e0dbd..b2a37547 100644
--- a/classes/ArrayRecordSet.php
+++ b/classes/ArrayRecordSet.php
@@ -3,20 +3,20 @@
/**
* Really simple RecordSet to allow printTable of arrays.
*
- * $Id: ArrayRecordSet.php,v 1.2 2005/05/02 15:47:25 chriskl Exp $
+ * $Id: ArrayRecordSet.php,v 1.3 2007/01/10 01:46:28 soranzo Exp $
*/
class ArrayRecordSet {
var $_array;
var $_count;
var $EOF = false;
- var $f;
+ var $fields;
function ArrayRecordSet($data) {
$this->_array = $data;
$this->_count = count($this->_array);
- $this->f = reset($this->_array);
- if ($this->f === false) $this->EOF = true;
+ $this->fields = reset($this->_array);
+ if ($this->fields === false) $this->EOF = true;
}
function recordCount() {
@@ -24,8 +24,8 @@ class ArrayRecordSet {
}
function moveNext() {
- $this->f = next($this->_array);
- if ($this->f === false) $this->EOF = true;
+ $this->fields = next($this->_array);
+ if ($this->fields === false) $this->EOF = true;
}
}