mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 22:56:46 +02:00
Mark abstract classes
This commit is contained in:
@@ -88,6 +88,10 @@ if (isset($_GET["sqlite"])) {
|
||||
function __construct($filename) {
|
||||
$this->dsn(DRIVER . ":$filename", "", "");
|
||||
}
|
||||
|
||||
function select_db($db) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ function get_driver($id) {
|
||||
return $drivers[$id];
|
||||
}
|
||||
|
||||
/*abstract*/ class SqlDriver {
|
||||
abstract class SqlDriver {
|
||||
var $_conn;
|
||||
|
||||
/** 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
|
||||
* @return bool
|
||||
*/
|
||||
/*abstract*/ function insertUpdate($table, $rows, $primary) {
|
||||
function insertUpdate($table, $rows, $primary) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -3,7 +3,7 @@ namespace Adminer;
|
||||
|
||||
// PDO can be used in several database drivers
|
||||
if (extension_loaded('pdo')) {
|
||||
/*abstract*/ class PdoDb {
|
||||
abstract class PdoDb {
|
||||
var $_result, $server_info, $affected_rows, $errno, $error, $pdo;
|
||||
|
||||
function __construct() {
|
||||
@@ -25,7 +25,7 @@ if (extension_loaded('pdo')) {
|
||||
$this->server_info = @$this->pdo->getAttribute(\PDO::ATTR_SERVER_VERSION);
|
||||
}
|
||||
|
||||
/*abstract function select_db($database);*/
|
||||
abstract function select_db($database);
|
||||
|
||||
function quote($string) {
|
||||
return $this->pdo->quote($string);
|
||||
|
Reference in New Issue
Block a user