Lines Matching refs:sqlite
15 protected $sqlite = null; variable in helper_plugin_top
23 if(!is_null($this->sqlite)) return $this->sqlite;
25 $this->sqlite = plugin_load('helper', 'sqlite');
26 if(!$this->sqlite) {
28 $this->sqlite = null;
32 $ok = $this->sqlite->init('top', __DIR__ . '/db');
35 $this->sqlite = null;
39 return $this->sqlite;
48 $sqlite = $this->getDBHelper();
49 if(!$sqlite) return;
69 $res = $sqlite->query($sql, $page, $page, $month, $lang, $month);
70 $sqlite->res_close($res);
80 $sqlite = $this->getDBHelper();
81 if(!$sqlite) return array();
87 $res = $sqlite->query($sql, $num);
90 $res = $sqlite->query($sql, $lang, $num);
93 $res = $sqlite->query($sql, intval($month), $num);
96 $res = $sqlite->query($sql, $lang, intval($month), $num);
98 $list = $sqlite->res2arr($res);
99 $sqlite->res_close($res);