[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-developers] CreateObject
From: |
Philipp Kamps |
Subject: |
[Phpgroupware-developers] CreateObject |
Date: |
Wed, 13 Apr 2005 10:13:22 +0200 |
Hi ya'll,
Dirk and I enhanced the CreateObject method in HEAD.
Don't worry - we kept the old functionality.
Now, CreateObject as a factory method checks for a
factory class in the modules before it would create the
instance by the old logic.
I implemented this factory class for the phpgwapi:
"class.ofphpgwapi.inc.php".
If you want (you don't have to) to use your own
factory class in your own module - you only have
the create the class: "class.of<your module name>.inc.php".
Have a look at "class.ofphpgwapi.inc.php" as an example.
Cheers, fips
- [Phpgroupware-developers] CreateObject,
Philipp Kamps <=