phpgroupware-developers
[Top][All Lists]
Advanced

[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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]