public function next()
 {
     $this->position++;
     if (false === ($row = $this->sth->fetchArray())) {
         $this->sth = null;
         return;
     }
     $this->currentRecord = new Gpf_Data_Record(array_keys($row), array_values($row));
 }
示例#2
0
 public function prepare($sqlString)
 {
     $sth = new Gpf_DbEngine_Driver_Mysql_Statement();
     $sth->init($sqlString, $this->handle);
     return $sth;
 }