Added missing methods to interface and added newly one to class.
[core.git] / inc / classes / middleware / database / class_DatabaseConnection.php
index 318073c81b79d7da8034358645686530ae27a415..dd4ce3258c635e8e412c93354732b7c98c7a2a52 100644 (file)
@@ -177,6 +177,17 @@ 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
+               return $this->dbLayer->removeNonPublicDataFromArray($data);
+       }
 }
 
 // [EOF]