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 1ec0e50..426fe38 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 37dca8f..6a6dd55 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 c55c751..84b8cc2 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;