<?php
// Import framework stuff
use CoreFramework\Configuration\FrameworkConfiguration;
+use CoreFramework\Helper\Application\ApplicationHelper;
use CoreFramework\Loader\ClassLoader;
/**
// Get config instance
$cfg = FrameworkConfiguration::getSelfInstance();
+// Initialize output system
+ApplicationHelper::createDebugInstance('ApplicationHelper');
+
// This application needs a database connection then we have to simply include
// the inc/database.php script
require($cfg->getConfigEntry('base_path') . 'inc/database.php');
$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');
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;
<?php
// Own namespace
-namespace CoreFramework\Database\Result;
+namespace CoreFramework\Result\Database;
// Import framework stuff
use CoreFramework\Object\BaseFrameworkSystem;
<?php
// Own namespace
-namespace CoreFramework\Database\Result;
+namespace CoreFramework\Result\Database;
// Import framework stuff
use CoreFramework\Criteria\Local\LocalSearchCriteria;
use CoreFramework\Criteria\Storing\StoreableCriteria;
use CoreFramework\Database\Backend\BaseDatabaseBackend;
use CoreFramework\Request\Requestable;
+use CoreFramework\Result\Search\SearchableResult;
/**
* A database result class
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Object\BaseFrameworkSystem;
use CoreFramework\Request\Requestable;
+use CoreFramework\Result\Search\SearchableResult;
/**
* A general user class
<?php
// Own namespace
-namespace CoreFramework\Database\Result;
+namespace CoreFramework\Result\Search;
// Import framework stuff
use CoreFramework\Criteria\Local\LocalSearchCriteria;
*
* @param $debugInstance An instance of a DebugMiddleware class
* @param $dbLayer An instance of a DatabaseBackend class
+ * @todo $debugInstance is currently not used
*/
public static final function createDatabaseConnection (DebugMiddleware $debugInstance, DatabaseBackend $dbLayer) {
// Get instance