From 16a79653459752531b9848b7857eaef5b3ce8b9b Mon Sep 17 00:00:00 2001 From: jollytoad Date: Tue, 1 Mar 2005 10:35:58 +0000 Subject: [PATCH] *** empty log message *** --- classes/ArrayRecordSet.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 classes/ArrayRecordSet.php diff --git a/classes/ArrayRecordSet.php b/classes/ArrayRecordSet.php new file mode 100644 index 00000000..0dd32880 --- /dev/null +++ b/classes/ArrayRecordSet.php @@ -0,0 +1,32 @@ +_array = $data; + $this->_count = count($this->_array); + $this->f = reset($this->_array); + if ($this->f === false) $this->EOF = true; + } + + function recordCount() { + return $this->_count; + } + + function moveNext() { + $this->f = next($this->_array); + if ($this->f === false) $this->EOF = true; + } +} + +?> -- 2.39.5