+ public function current() {
+ $row = $this->valid() ? $this->result[$this->pos] : false;
+
+ return is_array( $row ) ? (object)$row : $row;
+ }
+
+ public function key() {
+ return $this->pos;
+ }
+
+ public function next() {
+ $this->pos++;
+
+ return $this->current();
+ }
+
+ public function valid() {
+ return array_key_exists( $this->pos, $this->result );