From: Roland Häder Date: Sat, 9 Feb 2013 18:39:13 +0000 (+0000) Subject: Rewrote the static call to dynamic X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=0aa26cbbe1dcfcd42beee694b29fec8c994ce253 Rewrote the static call to dynamic --- 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');