]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/database/class_BaseDatabaseFrontend.php
Some 'static' array elements rewritten to constant, other cleanups
[core.git] / inc / classes / main / database / class_BaseDatabaseFrontend.php
index 57a5d54536b852d268e56e72c81eeb8c035c16e2..40d563b4d4e89805d00140745d87d84e1d8c02df 100644 (file)
@@ -5,7 +5,7 @@
  * @see                        DatabaseFrontendInterface - An interface for database frontends (front-end to the application)
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -26,10 +26,10 @@ abstract class BaseDatabaseFrontend extends BaseFrameworkSystem implements Datab
        // Constants for exceptions
        const EXCEPTION_SQL_QUERY = 0x140;
 
-       /**
-        * The limiter instance
-        */
-       private $limitInstance = null;
+       // Result array indexes
+       const RESULT_INDEX_ROWS      = 'rows';
+       const RESULT_INDEX_STATUS    = 'status';
+       const RESULT_INDEX_EXCEPTION = 'exception';
 
        /**
         * Protected constructor
@@ -37,12 +37,9 @@ abstract class BaseDatabaseFrontend extends BaseFrameworkSystem implements Datab
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct($className) {
+       protected function __construct ($className) {
                // Call parent constructor
                parent::__construct($className);
-
-               // Clean up a little
-               $this->removeNumberFormaters();
        }
 }