From: Roland Häder Date: Fri, 28 May 2010 02:57:19 +0000 (+0000) Subject: can now be set/get X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=ac03a19e29da74f91113fc6b5ba03883832c5684 can now be set/get --- diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index fe391873..68fd9c69 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -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 *