Rev 1116 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1116 | Rev 1130 | ||
---|---|---|---|
Line 22... | Line 22... | ||
22 | // phpcs:disable PSR1.Files.SideEffects |
22 | // phpcs:disable PSR1.Files.SideEffects |
23 | \defined('INSIDE_OIDPLUS') or die; |
23 | \defined('INSIDE_OIDPLUS') or die; |
24 | // phpcs:enable PSR1.Files.SideEffects |
24 | // phpcs:enable PSR1.Files.SideEffects |
25 | 25 | ||
26 | class OIDplusQueryResultSQLite3 extends OIDplusQueryResult { |
26 | class OIDplusQueryResultSQLite3 extends OIDplusQueryResult { |
- | 27 | /** |
|
- | 28 | * @var bool |
|
- | 29 | */ |
|
27 | protected $no_resultset; |
30 | protected $no_resultset; |
- | 31 | ||
- | 32 | /** |
|
- | 33 | * @var mixed |
|
- | 34 | */ |
|
28 | protected $res; |
35 | protected $res; |
- | 36 | ||
- | 37 | /** |
|
- | 38 | * @var array |
|
- | 39 | */ |
|
29 | protected $all_results = array(); |
40 | protected $all_results = array(); |
- | 41 | ||
- | 42 | /** |
|
- | 43 | * @var int |
|
- | 44 | */ |
|
30 | protected $cursor = 0; |
45 | protected $cursor = 0; |
31 | 46 | ||
32 | /** |
47 | /** |
33 | * @param $res |
48 | * @param mixed $res |
34 | */ |
49 | */ |
35 | public function __construct($res) { |
50 | public function __construct($res) { |
36 | if (is_bool($res) || ($res->numColumns() == 0)) { |
51 | if (is_bool($res) || ($res->numColumns() == 0)) { |
37 | // Why do qe need to check numColumns() ? |
52 | // Why do qe need to check numColumns() ? |
38 | // We need to do this because SQLite3::query() will always |
53 | // We need to do this because SQLite3::query() will always |