Messages translated to english, a lot uneccessary debug messages removed
[shipsimu.git] / inc / classes / main / database / class_BaseDatabaseFrontend.php
index 790b424f702e6e7e0fc6f6b3802db88d3657fae0..ac31d501f9205e7a03106db688815c21bd7fd42e 100644 (file)
@@ -37,11 +37,6 @@ abstract class BaseDatabaseFrontend extends BaseFrameworkSystem implements Datab
                // Call parent constructor
                parent::__construct($class);
 
-               // Debug message
-               if (((defined('DEBUG_DATABASE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:] Konstruktor erreicht.<br />\n",
-                       $this->__toString()
-               ));
-
                // Clean up a little
                $this->removeNumberFormaters();
        }
@@ -52,10 +47,6 @@ abstract class BaseDatabaseFrontend extends BaseFrameworkSystem implements Datab
         * @return      $limitInstance          The instance to the object ObjectLimits
         */
        public final function getLimitInstance () {
-               if ((defined('DEBUG_DATABASE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:] Limitierungsinstanz <strong>%s</strong> angefordert.<br />\n",
-                       $this->__toString(),
-                       $this->limitInstance->__toString()
-               ));
                return $this->limitInstance;
        }
 
@@ -68,12 +59,6 @@ abstract class BaseDatabaseFrontend extends BaseFrameworkSystem implements Datab
         * @return      void
         */
        public final function limitObject (ObjectLimits $limitInstance) {
-               // Debug message
-               if ((defined('DEBUG_DATABASE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:] Limitierungsinstanz <strong>%s</strong> soll verwendet werden.<br />\n",
-                       $this->__toString(),
-                       $limitInstance->__toString()
-               ));
-
                // Get limitArray for validation
                $array = $limitInstance->getLimitArray();
 
@@ -81,13 +66,6 @@ abstract class BaseDatabaseFrontend extends BaseFrameworkSystem implements Datab
                if ($array->count() > 0) {
                        // Okay, there is enougth
                        $this->limitInstance = $limitInstance;
-
-                       // Debug message
-                       if ((defined('DEBUG_DATABASE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:] Limitierungsinstanz <strong>%s</strong> wird verwendet und beinhaltet <strong>%s</strong> Eintr&auml;ge.<br />\n",
-                               $this->__toString(),
-                               $limitInstance->__toString(),
-                               $array->count()
-                       ));
                }
        }
 }