From dfaae5be1dbac2ba13bbb315c3e6c672b490cdbe Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 25 Feb 2017 17:30:42 +0100 Subject: [PATCH] Fixed and continued: - need to call ApplicationHelper::createDebugInstance() before inc/database.php is being loaded. This is old way anyway and will be rewritten right after this rewrite. - added "import" of CachedDatabaseResult and moved it to better namespace - added "import of SearchableResult - fixed config entry for it - first BaseDatabaseResult is a result, then it is for databases (queries) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- application/tests/init.php | 4 ++++ inc/config.php | 2 +- inc/main/classes/class_BaseFrameworkSystem.php | 2 ++ inc/main/classes/database/class_BaseDatabaseResult.php | 2 +- .../classes/database/result/class_CachedDatabaseResult.php | 3 ++- inc/main/classes/user/class_BaseUser.php | 1 + inc/main/interfaces/result/class_SearchableResult.php | 2 +- inc/main/middleware/database/class_DatabaseConnection.php | 1 + 8 files changed, 13 insertions(+), 4 deletions(-) diff --git a/application/tests/init.php b/application/tests/init.php index 00cf2f4d..188d06af 100644 --- a/application/tests/init.php +++ b/application/tests/init.php @@ -1,6 +1,7 @@ getConfigEntry('base_path') . 'inc/database.php'); diff --git a/inc/config.php b/inc/config.php index b33f3d36..bd6ef833 100644 --- a/inc/config.php +++ b/inc/config.php @@ -182,7 +182,7 @@ $cfg->setConfigEntry('update_criteria_class', 'UpdateCriteria'); $cfg->setConfigEntry('file_io_class', 'CoreFramework\Handler\Filesystem\FileIoHandler'); // CFG: DATABASE-RESULT-CLASS -$cfg->setConfigEntry('database_result_class', 'CachedDatabaseResult'); +$cfg->setConfigEntry('database_result_class', 'CoreFramework\Result\Database\CachedDatabaseResult'); // CFG: FILTER-CHAIN-CLASS $cfg->setConfigEntry('filter_chain_class', 'CoreFramework\Chain\Filter\FilterChain'); diff --git a/inc/main/classes/class_BaseFrameworkSystem.php b/inc/main/classes/class_BaseFrameworkSystem.php index f306b320..e4c03668 100644 --- a/inc/main/classes/class_BaseFrameworkSystem.php +++ b/inc/main/classes/class_BaseFrameworkSystem.php @@ -23,6 +23,8 @@ use CoreFramework\Registry\Register; use CoreFramework\Registry\Registry; use CoreFramework\Request\Requestable; use CoreFramework\Resolver\Resolver; +use CoreFramework\Result\Database\CachedDatabaseResult; +use CoreFramework\Result\Search\SearchableResult; use CoreFramework\Response\Responseable; use CoreFramework\Stream\Output\OutputStreamer; use CoreFramework\Template\CompileableTemplate; diff --git a/inc/main/classes/database/class_BaseDatabaseResult.php b/inc/main/classes/database/class_BaseDatabaseResult.php index 3d598db4..eac2e343 100644 --- a/inc/main/classes/database/class_BaseDatabaseResult.php +++ b/inc/main/classes/database/class_BaseDatabaseResult.php @@ -1,6 +1,6 @@