From b03bb1c286731b52ea9a759ed70728bf3c1d5cea Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 28 May 2013 07:31:16 +0200 Subject: [PATCH] pass $db to constructor --- inc/inc.ClassExtensionMgr.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/inc/inc.ClassExtensionMgr.php b/inc/inc.ClassExtensionMgr.php index cc1042f77..49ec52b00 100644 --- a/inc/inc.ClassExtensionMgr.php +++ b/inc/inc.ClassExtensionMgr.php @@ -26,6 +26,13 @@ * @version Release: @package_version@ */ class SeedDMS_Extension_Mgr { + /** + * @var object $db reference to database object. This must be an instance + * of {@link SeedDMS_Core_DatabaseAccess}. + * @access protected + */ + protected $db; + /** * @var string $extdir directory where extensions are located * @access protected @@ -40,7 +47,8 @@ class SeedDMS_Extension_Mgr { protected $cachedir; - function __construct($extdir = '', $cachedir = '') { + function __construct($db, $extdir = '', $cachedir = '') { + $this->db = $db; $this->cachedir = $cachedir; $this->extdir = $extdir; }