]> git.mxchange.org Git - core.git/blobdiff - inc/classes/middleware/database/class_DatabaseConnection.php
Opps, forgot to return value + more logging.
[core.git] / inc / classes / middleware / database / class_DatabaseConnection.php
index 318073c81b79d7da8034358645686530ae27a415..65fed3cdc5a6e909cb95e5275a27a6970e8d0af0 100644 (file)
@@ -177,6 +177,21 @@ class DatabaseConnection extends BaseMiddleware implements DatabaseConnector, Re
                // Return the 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) {
+               // Call database backend
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DB-CONNECTION[' . $this->__toString() . ']: Calling this->dbLayer->removeNonPublicDataFromArray(data) ...');
+               $data = $this->dbLayer->removeNonPublicDataFromArray($data);
+
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DB-CONNECTION[' . $this->__toString() . ']: data[]=' . gettype($data));
+               return $data;
+       }
 }
 
 // [EOF]