function getOneRecord() { $record = new lmbLinterRecord(); $queryId = $this->execute(); $values = linter_get_data_array($queryId); $record->import($values); $this->free(); return $record; }
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; } }