From ac03a19e29da74f91113fc6b5ba03883832c5684 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 28 May 2010 02:57:19 +0000 Subject: [PATCH] can now be set/get --- .../main/class_BaseFrameworkSystem.php | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) 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 * -- 2.39.5