Added more debug lines + missing super method.
authorRoland Haeder <roland@mxchange.org>
Mon, 10 Feb 2014 21:10:44 +0000 (22:10 +0100)
committerRoland Haeder <roland@mxchange.org>
Mon, 10 Feb 2014 21:10:44 +0000 (22:10 +0100)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/database/class_BaseDatabaseBackend.php
inc/classes/main/database/class_BaseDatabaseWrapper.php
inc/classes/middleware/database/class_DatabaseConnection.php

index 07d1b33..e6c5676 100644 (file)
@@ -90,7 +90,7 @@ abstract class BaseDatabaseBackend extends BaseFrameworkSystem implements Databa
         * @param       $data   An array with possible non-public data that needs to be removed.
         * @return      $data   A cleaned up array with only public data.
         */
-       public abstract function removeNonPublicDataFromArray(array $data);
+       public abstract function removeNonPublicDataFromArray (array $data);
 }
 
 // [EOF]
index 9430c6a..3586461 100644 (file)
@@ -221,6 +221,17 @@ class BaseDatabaseWrapper extends BaseFrameworkSystem {
                // Return value
                return $primaryKey;
        }
+
+       /**
+        * Removes non-public data from given array.
+        *
+        * @param       $data   An array with possible non-public data that needs to be removed.
+        * @return      $data   A cleaned up array with only public data.
+        */
+       public function removeNonPublicDataFromArray (array $data) {
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('WRAPPER[' . $this->__toString() . ']: Calling this->getDatabaseInstance()->removeNonPublicDataFromArray(data) ...');
+               $this->getDatabaseInstance()->removeNonPublicDataFromArray($data);
+       }
 }
 
 // [EOF]
index dd4ce32..e090cf2 100644 (file)
@@ -186,6 +186,7 @@ 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);
        }
 }