From: Roland Haeder Date: Mon, 10 Feb 2014 21:10:44 +0000 (+0100) Subject: Added more debug lines + missing super method. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=59f380688a365ee6fd4bcd9e79a8b99dfb048d7e;p=core.git Added more debug lines + missing super method. Signed-off-by: Roland Häder --- diff --git a/inc/classes/main/database/class_BaseDatabaseBackend.php b/inc/classes/main/database/class_BaseDatabaseBackend.php index 07d1b33b..e6c56765 100644 --- a/inc/classes/main/database/class_BaseDatabaseBackend.php +++ b/inc/classes/main/database/class_BaseDatabaseBackend.php @@ -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] diff --git a/inc/classes/main/database/class_BaseDatabaseWrapper.php b/inc/classes/main/database/class_BaseDatabaseWrapper.php index 9430c6ac..35864618 100644 --- a/inc/classes/main/database/class_BaseDatabaseWrapper.php +++ b/inc/classes/main/database/class_BaseDatabaseWrapper.php @@ -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] diff --git a/inc/classes/middleware/database/class_DatabaseConnection.php b/inc/classes/middleware/database/class_DatabaseConnection.php index dd4ce325..e090cf2a 100644 --- a/inc/classes/middleware/database/class_DatabaseConnection.php +++ b/inc/classes/middleware/database/class_DatabaseConnection.php @@ -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); } }