From 54dce2f61472927289ae152afedf1aeaf076e8b1 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 4 Feb 2014 20:41:53 +0100 Subject: [PATCH] Renamed to DatabaseBackend to get rid of word 'Interface' in an interface name as this is twice over. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- ...DatabaseBackendInterface.php => class_DatabaseBackend.php} | 2 +- inc/classes/main/database/class_BaseDatabaseBackend.php | 4 ++-- .../main/database/databases/class_LocalFileDatabase.php | 2 +- inc/classes/middleware/database/class_DatabaseConnection.php | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) rename inc/classes/interfaces/database/backend/{class_DatabaseBackendInterface.php => class_DatabaseBackend.php} (97%) diff --git a/inc/classes/interfaces/database/backend/class_DatabaseBackendInterface.php b/inc/classes/interfaces/database/backend/class_DatabaseBackend.php similarity index 97% rename from inc/classes/interfaces/database/backend/class_DatabaseBackendInterface.php rename to inc/classes/interfaces/database/backend/class_DatabaseBackend.php index ea7710dd..30a2182b 100644 --- a/inc/classes/interfaces/database/backend/class_DatabaseBackendInterface.php +++ b/inc/classes/interfaces/database/backend/class_DatabaseBackend.php @@ -25,7 +25,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -interface DatabaseBackendInterface extends FrameworkDatabaseInterface { +interface DatabaseBackend extends FrameworkDatabaseInterface { /** * Makes sure that the database connection is up and alive * diff --git a/inc/classes/main/database/class_BaseDatabaseBackend.php b/inc/classes/main/database/class_BaseDatabaseBackend.php index 9dd41a9c..5c0d29be 100644 --- a/inc/classes/main/database/class_BaseDatabaseBackend.php +++ b/inc/classes/main/database/class_BaseDatabaseBackend.php @@ -2,7 +2,7 @@ /** * An abstract database access class for handling database I/O requests * - * @see DatabaseBackendInterface - An interface for database backends + * @see DatabaseBackend - An interface for database backends * @author Roland Haeder * @version 0.0.0 * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2013 Core Developer Team @@ -22,7 +22,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -abstract class BaseDatabaseBackend extends BaseFrameworkSystem implements DatabaseBackendInterface { +abstract class BaseDatabaseBackend extends BaseFrameworkSystem implements DatabaseBackend { // Constants for exceptions const EXCEPTION_SQL_QUERY = 0x140; diff --git a/inc/classes/main/database/databases/class_LocalFileDatabase.php b/inc/classes/main/database/databases/class_LocalFileDatabase.php index e7378df5..445b7f8d 100644 --- a/inc/classes/main/database/databases/class_LocalFileDatabase.php +++ b/inc/classes/main/database/databases/class_LocalFileDatabase.php @@ -27,7 +27,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class LocalFileDatabase extends BaseDatabaseBackend implements DatabaseBackendInterface { +class LocalFileDatabase extends BaseDatabaseBackend implements DatabaseBackend { /** * The file's extension */ diff --git a/inc/classes/middleware/database/class_DatabaseConnection.php b/inc/classes/middleware/database/class_DatabaseConnection.php index 95b01476..318073c8 100644 --- a/inc/classes/middleware/database/class_DatabaseConnection.php +++ b/inc/classes/middleware/database/class_DatabaseConnection.php @@ -49,7 +49,7 @@ class DatabaseConnection extends BaseMiddleware implements DatabaseConnector, Re } // Create new database connection layer - public static final function createDatabaseConnection (DebugMiddleware $debugInstance, DatabaseBackendInterface $dbLayer) { + public static final function createDatabaseConnection (DebugMiddleware $debugInstance, DatabaseBackend $dbLayer) { // Get instance $databaseInstance = new DatabaseConnection(); @@ -91,7 +91,7 @@ class DatabaseConnection extends BaseMiddleware implements DatabaseConnector, Re * @param $dbLayer An instance of the real database layer * @return void */ - public final function setDatabaseLayer (DatabaseBackendInterface $dbLayer) { + public final function setDatabaseLayer (DatabaseBackend $dbLayer) { $this->dbLayer = $dbLayer; } -- 2.39.5