Lines Matching refs:db
20 private $db = null;
27 $this->db = plugin_load('helper', 'sqlite');
28 if (!$this->db) {
32 if (!$this->db->init('do', dirname(__FILE__) . '/db/')) {
33 $this->db = null;
44 if (!$this->db) {
47 $this->db->query('DELETE FROM tasks WHERE page = ?', $id);
48 $this->db->query('DELETE FROM task_assignees WHERE page = ?', $id);
59 if (!$this->db) {
65 $this->db->query(
76 $this->db->query(
104 if (!$this->db) {
126 $where .= sprintf(' AND A.page LIKE %s', $this->db->quote_string($ns . '%'));
136 $where .= sprintf(' AND A.page = %s', $this->db->quote_string($args['id'][0]));
165 $where .= ' AND A.md5 = ' . $this->db->quote_string($args['md5'][0]);
193 $args[$n] = $this->db->quote_and_join($args[$n]);
220 $res = $this->db->query($query);
221 $res = $this->db->res2arr($res);
257 if (!$this->db) {
267 $res = $this->db->query(
277 $stat = $this->db->res2row($res);
294 $this->db->query(
306 $this->db->query(
396 if (!$this->db) {
403 $res = $this->db->query(
419 return $this->db->res2arr($res);