Opps, forgot to return value + more logging.
authorRoland Haeder <roland@mxchange.org>
Mon, 10 Feb 2014 22:03:00 +0000 (23:03 +0100)
committerRoland Haeder <roland@mxchange.org>
Mon, 10 Feb 2014 22:03:00 +0000 (23:03 +0100)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/database/class_BaseDatabaseWrapper.php
inc/classes/main/database/databases/class_LocalFileDatabase.php
inc/classes/middleware/database/class_DatabaseConnection.php

index 3586461..28ee12c 100644 (file)
@@ -230,7 +230,10 @@ class BaseDatabaseWrapper extends BaseFrameworkSystem {
         */
        public function removeNonPublicDataFromArray (array $data) {
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('WRAPPER[' . $this->__toString() . ']: Calling this->getDatabaseInstance()->removeNonPublicDataFromArray(data) ...');
-               $this->getDatabaseInstance()->removeNonPublicDataFromArray($data);
+               $data = $this->getDatabaseInstance()->removeNonPublicDataFromArray($data);
+
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('WRAPPER[' . $this->__toString() . ']: data[]=' . gettype($data));
+               return $data;
        }
 }
 
index 7fd9e90..59d89aa 100644 (file)
@@ -609,6 +609,7 @@ class LocalFileDatabase extends BaseDatabaseBackend implements DatabaseBackend {
                unset($data[$this->indexKey]);
 
                // Return it
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DATABASE: data[' . gettype($data) . ']='.print_r($data, TRUE));
                return $data;
        }
 }
index e090cf2..65fed3c 100644 (file)
@@ -187,7 +187,10 @@ class DatabaseConnection extends BaseMiddleware implements DatabaseConnector, Re
        public function removeNonPublicDataFromArray (array $data) {
                // Call database backend
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DB-CONNECTION[' . $this->__toString() . ']: Calling this->dbLayer->removeNonPublicDataFromArray(data) ...');
-               return $this->dbLayer->removeNonPublicDataFromArray($data);
+               $data = $this->dbLayer->removeNonPublicDataFromArray($data);
+
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DB-CONNECTION[' . $this->__toString() . ']: data[]=' . gettype($data));
+               return $data;
        }
 }