Date: 03/27/01
- Next message: Maxim Derkachev: "Re: [phplib] Object instance"
- Previous message: Stefan Becker: "[phplib] Table Edit field problem"
- Next in thread: Maxim Derkachev: "Re: [phplib] Object instance"
- Reply: Maxim Derkachev: "Re: [phplib] Object instance"
- Reply: Bogdan Morar: "Re: [phplib] Object instance"
- Reply: nathan r. hruby: "Re: [phplib] Object instance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
Supose I have a class which extend DB_Sql. Can I create an object
starting with the class name?
An example is:
class XYZ extend DB_Sql {
var $classname = "XYZ";
...
}
In my file I can have:
$objXYZ = new XYZ;
but my question is about creation like this:
$tmp = "XYZ";
$objXYZ = new $tmp;
Are some method to build an object starting with the class name?
(like $objXYZ = new Class($tmp); ???? )
Thanks in advance,
Bogdan Morar
www.bogmor.com
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Maxim Derkachev: "Re: [phplib] Object instance"
- Previous message: Stefan Becker: "[phplib] Table Edit field problem"
- Next in thread: Maxim Derkachev: "Re: [phplib] Object instance"
- Reply: Maxim Derkachev: "Re: [phplib] Object instance"
- Reply: Bogdan Morar: "Re: [phplib] Object instance"
- Reply: nathan r. hruby: "Re: [phplib] Object instance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

