From e8f16009f46e89d7fd9d79f6e5c4d1982a37f9f8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 27 Jan 2010 01:48:25 +0000 Subject: [PATCH] The ObjectFactory may now be extended e.g. done in hub project by a NodeStateFactory class --- inc/classes/main/factories/objects/class_ObjectFactory.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/classes/main/factories/objects/class_ObjectFactory.php b/inc/classes/main/factories/objects/class_ObjectFactory.php index 4a6f0d42..1b51c84c 100644 --- a/inc/classes/main/factories/objects/class_ObjectFactory.php +++ b/inc/classes/main/factories/objects/class_ObjectFactory.php @@ -30,11 +30,12 @@ class ObjectFactory extends BaseFactory { /** * Protected constructor * + * @param $className Name of this class * @return void */ - protected function __construct () { + protected function __construct ($className = __CLASS__) { // Call parent constructor - parent::__construct(__CLASS__); + parent::__construct($className); } /** -- 2.39.5