mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 16:44:17 +02:00
Mark abstract classes
This commit is contained in:
@@ -88,6 +88,10 @@ if (isset($_GET["sqlite"])) {
|
|||||||
function __construct($filename) {
|
function __construct($filename) {
|
||||||
$this->dsn(DRIVER . ":$filename", "", "");
|
$this->dsn(DRIVER . ":$filename", "", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function select_db($db) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -22,7 +22,7 @@ function get_driver($id) {
|
|||||||
return $drivers[$id];
|
return $drivers[$id];
|
||||||
}
|
}
|
||||||
|
|
||||||
/*abstract*/ class SqlDriver {
|
abstract class SqlDriver {
|
||||||
var $_conn;
|
var $_conn;
|
||||||
|
|
||||||
/** Create object for performing database operations
|
/** Create object for performing database operations
|
||||||
@@ -110,7 +110,7 @@ function get_driver($id) {
|
|||||||
* @param array of arrays with escaped columns in keys and quoted data in values
|
* @param array of arrays with escaped columns in keys and quoted data in values
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
/*abstract*/ function insertUpdate($table, $rows, $primary) {
|
function insertUpdate($table, $rows, $primary) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -3,7 +3,7 @@ namespace Adminer;
|
|||||||
|
|
||||||
// PDO can be used in several database drivers
|
// PDO can be used in several database drivers
|
||||||
if (extension_loaded('pdo')) {
|
if (extension_loaded('pdo')) {
|
||||||
/*abstract*/ class PdoDb {
|
abstract class PdoDb {
|
||||||
var $_result, $server_info, $affected_rows, $errno, $error, $pdo;
|
var $_result, $server_info, $affected_rows, $errno, $error, $pdo;
|
||||||
|
|
||||||
function __construct() {
|
function __construct() {
|
||||||
@@ -25,7 +25,7 @@ if (extension_loaded('pdo')) {
|
|||||||
$this->server_info = @$this->pdo->getAttribute(\PDO::ATTR_SERVER_VERSION);
|
$this->server_info = @$this->pdo->getAttribute(\PDO::ATTR_SERVER_VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*abstract function select_db($database);*/
|
abstract function select_db($database);
|
||||||
|
|
||||||
function quote($string) {
|
function quote($string) {
|
||||||
return $this->pdo->quote($string);
|
return $this->pdo->quote($string);
|
||||||
|
Reference in New Issue
Block a user