can now be set/get
authorRoland Häder <roland@mxchange.org>
Fri, 28 May 2010 02:57:19 +0000 (02:57 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 28 May 2010 02:57:19 +0000 (02:57 +0000)
inc/classes/main/class_BaseFrameworkSystem.php

index fe39187..68fd9c6 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
         *