resultType is now removed (was not used anyway)
authorRoland Häder <roland@mxchange.org>
Thu, 27 Oct 2011 16:26:39 +0000 (16:26 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 27 Oct 2011 16:26:39 +0000 (16:26 +0000)
inc/classes/interfaces/database/frontend/class_DatabaseFrontendInterface.php
inc/classes/main/database/databases/class_LocalFileDatabase.php
inc/classes/middleware/database/class_DatabaseConnection.php

index 1ec0e50ed81a43378841d3fec2eeeb386ac627bd..426fe38bb0c94d48c39ed054f0a65f207b2af3c3 100644 (file)
@@ -37,14 +37,13 @@ interface DatabaseFrontendInterface extends FrameworkDatabaseInterface {
         * Starts a SELECT query on the database by given return type, table name
         * and search criteria
         *
-        * @param       $resultType             Result type ('array', 'object' and 'indexed' are valid)
         * @param       $tableName              Name of the database table
         * @param       $criteria               Search criteria class
         * @return      $resultData             Result data of the query
         * @throws      UnsupportedCriteriaException    If the criteria is unsupported
         * @throws      SqlException                                    If an SQL error occurs
         */
-       function querySelect ($resultType, $tableName, LocalSearchCriteria $criteriaInstance);
+       function querySelect ($tableName, LocalSearchCriteria $criteriaInstance);
 
        /**
         * 'Inserts' a data set instance into a local file database folder
index 37dca8fcc4f2c3fa83c6e0a199b69db411a02477..6a6dd559aa848bc01ac4a69b38d7bf9bc61e6cb1 100644 (file)
@@ -337,14 +337,13 @@ class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend
         * Starts a SELECT query on the database by given return type, table name
         * and search criteria
         *
-        * @param       $resultType             Result type ('array', 'object' and 'indexed' are valid)
         * @param       $tableName              Name of the database table
         * @param       $criteria               Local search criteria class
         * @return      $resultData             Result data of the query
         * @throws      UnsupportedCriteriaException    If the criteria is unsupported
         * @throws      SqlException                                    If an 'SQL error' occurs
         */
-       public function querySelect ($resultType, $tableName, LocalSearchCriteria $criteriaInstance) {
+       public function querySelect ($tableName, LocalSearchCriteria $criteriaInstance) {
                // The result is null by any errors
                $resultData = NULL;
 
index c55c75159c8f1a665115efb27a522410b75f74ba..84b8cc24b82e88edd7b9660a239825d753338539 100644 (file)
@@ -120,7 +120,7 @@ class DatabaseConnection extends BaseMiddleware implements DatabaseConnector, Re
                $this->dbLayer->connectToDatabase();
 
                // Get result from query
-               $result = $this->dbLayer->querySelect('array', $tableName, $criteriaInstance);
+               $result = $this->dbLayer->querySelect($tableName, $criteriaInstance);
 
                // Return the result
                return $result;