]> git.mxchange.org Git - core.git/commitdiff
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 07d1b33bd21f9b30b6b8394e392c2c4489a2ab4b..e6c56765ae8eec963ea0cbf336ffc54aaad1d291 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 9430c6ace7700cf68ec3bfe8a7484d725fcdf713..358646182e51a7f761455e2024ed279eb6bf9967 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 dd4ce3258c635e8e412c93354732b7c98c7a2a52..e090cf2a4ae73757d3b94b63f27176a8693e99f3 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);
        }
 }