function getOneRecord()
 {
     $record = new lmbLinterRecord();
     $queryId = $this->execute();
     $values = linter_get_data_array($queryId);
     $record->import($values);
     $this->free();
     return $record;
 }
Ejemplo n.º 2
0
 function at($pos)
 {
     $stmt = clone $this->stmt;
     if ($this->sort_params) {
         $stmt->addOrder($this->sort_params);
     }
     $stmt->addLimit($pos, 1);
     $queryId = $stmt->execute();
     $arr = linter_fetch_array($queryId);
     if ($this->queryId > 0) {
         $this->connection->closeCursor($queryId);
     }
     if (is_array($arr)) {
         $record = new lmbLinterRecord();
         $record->import($arr);
         return $record;
     }
 }