]> git.mxchange.org Git - core.git/commitdiff
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 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
         *