@@ 85-94 (lines=10) @@ | ||
82 | * @return mixed |
|
83 | * @throws IteratorException |
|
84 | */ |
|
85 | public function moveNext() |
|
86 | { |
|
87 | if (!$this->hasNext()) { |
|
88 | throw new IteratorException("No more records. Did you used hasNext() before moveNext()?"); |
|
89 | } else { |
|
90 | $sr = array_shift($this->_rowBuffer); |
|
91 | $this->_moveNextRow++; |
|
92 | return $sr; |
|
93 | } |
|
94 | } |
|
95 | ||
96 | function key() |
|
97 | { |
@@ 81-90 (lines=10) @@ | ||
78 | * @return SingleRow |
|
79 | * @throws IteratorException |
|
80 | */ |
|
81 | public function moveNext() |
|
82 | { |
|
83 | if (!$this->hasNext()) { |
|
84 | throw new IteratorException("No more records. Did you used hasNext() before moveNext()?"); |
|
85 | } else { |
|
86 | $sr = array_shift($this->_rowBuffer); |
|
87 | $this->_currentRow++; |
|
88 | return $sr; |
|
89 | } |
|
90 | } |
|
91 | ||
92 | function key() |
|
93 | { |
@@ 96-105 (lines=10) @@ | ||
93 | * @return SingleRow |
|
94 | * @throws IteratorException |
|
95 | */ |
|
96 | public function moveNext() |
|
97 | { |
|
98 | if (!$this->hasNext()) { |
|
99 | throw new IteratorException("No more records. Did you used hasNext() before moveNext()?"); |
|
100 | } else { |
|
101 | $sr = array_shift($this->_rowBuffer); |
|
102 | $this->_moveNextRow++; |
|
103 | return $sr; |
|
104 | } |
|
105 | } |
|
106 | ||
107 | function key() |
|
108 | { |