can now be set/get
[core.git] / inc / classes / main / class_BaseFrameworkSystem.php
index fe3918730865d5e7d8da74fe73d967a1b22ede7e..68fd9c69307a2c31afbff2c0831aeb6b5a21d97c 100644 (file)
@@ -118,10 +118,15 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         */
        private $protocolInstance = null;
 
+       /**
+        * A database wrapper instance
+        */
+       private $databaseInstance = null;
+
        /**
         * The real class name
         */
-       private $realClass      = 'BaseFrameworkSystem';
+       private $realClass = 'BaseFrameworkSystem';
 
        /**
         * Thousands seperator
@@ -1379,6 +1384,25 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                return $this->protocolInstance;
        }
 
+       /**
+        * Setter for BaseDatabaseWrapper instance
+        *
+        * @param       $wrapperInstance        An instance of an BaseDatabaseWrapper
+        * @return      void
+        */
+       public final function setWrapperInstance (BaseDatabaseWrapper $wrapperInstance) {
+               $this->wrapperInstance = $wrapperInstance;
+       }
+
+       /**
+        * Getter for BaseDatabaseWrapper instance
+        *
+        * @return      $wrapperInstance        An instance of an BaseDatabaseWrapper
+        */
+       public final function getWrapperInstance () {
+               return $this->wrapperInstance;
+       }
+
        /**
         * Setter for socket resource
         *