From 0aa26cbbe1dcfcd42beee694b29fec8c994ce253 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 9 Feb 2013 18:39:13 +0000 Subject: [PATCH] Rewrote the static call to dynamic --- inc/classes/main/database/class_BaseDatabaseWrapper.php | 2 +- inc/config.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/classes/main/database/class_BaseDatabaseWrapper.php b/inc/classes/main/database/class_BaseDatabaseWrapper.php index 357be677..63d121c9 100644 --- a/inc/classes/main/database/class_BaseDatabaseWrapper.php +++ b/inc/classes/main/database/class_BaseDatabaseWrapper.php @@ -176,7 +176,7 @@ class BaseDatabaseWrapper extends BaseFrameworkSystem { } // Create an instance of a DatabaseResult class with the given result - $resultInstance = DatabaseResult::createDatabaseResult($result); + $resultInstance = ObjectFactory::createObjectByConfiguredName('database_result_class', array($result)); // And return the instance return $resultInstance; diff --git a/inc/config.php b/inc/config.php index 21c02701..bb0defe4 100644 --- a/inc/config.php +++ b/inc/config.php @@ -170,6 +170,9 @@ $cfg->setConfigEntry('update_criteria_class', 'UpdateCriteria'); // CFG: FILE-IO-CLASS $cfg->setConfigEntry('file_io_class', 'FileIoHandler'); +// CFG: DATABASE-RESULT-CLASS +$cfg->setConfigEntry('database_result_class', 'DatabaseResult'); + // CFG: FILTER-CHAIN-CLASS $cfg->setConfigEntry('filter_chain_class', 'FilterChain'); -- 2.39.5