| 1 | <?php |
||
| 13 | class SQLite3Query extends SS_Query |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The SQLite3Connector object that created this result set. |
||
| 18 | * |
||
| 19 | * @var SQLite3Connector |
||
| 20 | */ |
||
| 21 | protected $database; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The internal sqlite3 handle that points to the result set. |
||
| 25 | * |
||
| 26 | * @var SQLite3Result |
||
| 27 | */ |
||
| 28 | protected $handle; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Hook the result-set given into a Query class, suitable for use by framework. |
||
| 32 | * @param SQLite3Connector $database The database object that created this query. |
||
| 33 | * @param SQLite3Result $handle the internal sqlite3 handle that is points to the resultset. |
||
| 34 | */ |
||
| 35 | public function __construct(SQLite3Connector $database, SQLite3Result $handle) |
||
| 40 | |||
| 41 | public function __destruct() |
||
| 47 | |||
| 48 | public function seek($row) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @todo This looks terrible but there is no SQLite3::get_num_rows() implementation |
||
| 60 | */ |
||
| 61 | public function numRecords() |
||
| 70 | |||
| 71 | public function nextRecord() |
||
| 79 | } |
||
| 80 |