Lines Matching refs:sqlite
12 protected $sqlite = null;
16 $this->sqlite = plugin_load('helper', 'sqlite');
17 if (!$this->sqlite) {
18 msg('The top plugin requires the sqlite plugin', -1);
22 if (!$this->sqlite->init('top', __DIR__ . '/db')) {
23 msg('top plugin: sqlite initialization failed', -1);
34 return $this->sqlite;
62 $res = $this->sqlite->query($sql, $page, $page, $month, $lang, $month);
63 $this->sqlite->res_close($res);
80 $res = $this->sqlite->query($sql, $num);
83 $res = $this->sqlite->query($sql, $lang, $num);
86 $res = $this->sqlite->query($sql, intval($month), $num);
89 $res = $this->sqlite->query($sql, $lang, intval($month), $num);
91 $list = $this->sqlite->res2arr($res);
92 $this->sqlite->res_close($res);