Lines Matching defs:db
19 protected $db;
43 if ($INPUT->str('db') && checkSecurityToken()) {
45 $this->db = new SQLiteDB($INPUT->str('db'), '');
46 $this->querySaver = new QuerySaver($this->db->getDBName());
56 $exportfile = $conf['tmpdir'] . '/' . $this->db->getDbName() . '.sql';
57 $this->db->dumpToFile($exportfile);
59 header('Content-Disposition: attachment; filename="' . $this->db->getDbName() . '.sql";');
73 $this->db->getPdo()->beginTransaction();
75 $this->db->exec($s);
77 $this->db->getPdo()->commit();
80 $this->db->getPdo()->rollBack();
91 $file = $this->db->getDbFile();
95 . $this->db->getDbName() . SQLiteDB::FILE_EXTENSION . '"'
110 if ($this->db) {
111 echo '<h2>' . $this->getLang('db') . ' "' . hsc($this->db->getDbName()) . '"</h2>';
148 'title' => $this->getLang('db') . ':',
154 $db = basename($file, '.sqlite3');
156 'link' => wl($ID, ['do' => 'admin', 'page' => 'sqlite', 'db' => $db, 'sectok' => getSecurityToken()]),
157 'title' => $db,
181 $result = $this->db->queryAll($s);
243 'db' => $this->db ? $this->db->getDBName() : '',