Lines Matching refs:db
16 protected $db; variable in helper_plugin_starred
25 if($this->db !== null) return $this->db;
28 $this->db = new SQLiteDB('starred', __DIR__ . '/db/');
29 return $this->db;
48 $db = $this->getDB();
49 if (!$db) return;
61 $db->exec($sql, [$pageid, $user]);
65 $db->exec($sql, [$pageid, $user, time()]);
82 $db = $this->getDB();
83 if (!$db) return false;
91 return (int)$db->queryValue($sql, [$pageid, $user]);
106 $db = $this->getDB();
107 if (!$db) return $result;
127 return $db->queryKeyValueList($sql, [$user]);