Lines Matching refs:sqlite
15 protected $sqlite = null; variable in helper_plugin_rating
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('rating', __DIR__ . '/db');
35 $this->sqlite = null;
39 return $this->sqlite;
60 $sqlite = $this->getDBHelper();
61 if(!$sqlite) return;
64 $res = $sqlite->query($sql, $ID);
65 $current = (int) $sqlite->res2single($res);
66 $sqlite->res_close($res);
69 $res = $sqlite->query($sql, $ID, $this->userID());
70 $self = (int) $sqlite->res2single($res);
71 $sqlite->res_close($res);
92 $sqlite = $this->getDBHelper();
93 if(!$sqlite) return;
96 $res = $sqlite->query($sql, $page);
97 $sqlite->res_close($res);
107 $sqlite = $this->getDBHelper();
108 if(!$sqlite) return array();
114 $res = $sqlite->query($sql, $num);
117 $res = $sqlite->query($sql, $lang, $num);
120 $res = $sqlite->query($sql, $startdate, $num);
123 $res = $sqlite->query($sql, $lang, $startdate, $num);
125 $list = $sqlite->res2arr($res);
126 $sqlite->res_close($res);
140 $sqlite = $this->getDBHelper();
141 if(!$sqlite) return;
160 $sqlite->query($sql, $page, $this->userID(), $lang, $date, $rate);