Re: [PHP] How to get class name in static function (PHP 4.2.3)

2004-05-18 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: Burhan Khalid <[EMAIL PROTECTED]> schrieb am 18.05.2004, 10:48:29: Torsten Roehr wrote: Hi, does anyone know a way of how to get the name of the class within a static function? I can't use __CLASS__ as my PHP version is 4.2.3 and I can't upgrade. My code (simplified): clas

Re: [PHP] How to get class name in static function (PHP 4.2.3)

2004-05-18 Thread Burhan Khalid
Torsten Roehr wrote: Hi, does anyone know a way of how to get the name of the class within a static function? I can't use __CLASS__ as my PHP version is 4.2.3 and I can't upgrade. My code (simplified): class Base { function Factory() { $classname = ???; return new $classname;

Re: [PHP] How to get class name in static function (PHP 4.2.3)

2004-05-16 Thread Curt Zirzow
* Thus wrote Torsten Roehr ([EMAIL PROTECTED]): > Hi, > > does anyone know a way of how to get the name of the class within a static > function? I can't use __CLASS__ as my PHP version is 4.2.3 and I can't > upgrade. > > My code (simplified): > > class Base { > function Factory() { >

[PHP] How to get class name in static function (PHP 4.2.3)

2004-05-16 Thread Torsten Roehr
Hi, does anyone know a way of how to get the name of the class within a static function? I can't use __CLASS__ as my PHP version is 4.2.3 and I can't upgrade. My code (simplified): class Base { function Factory() { $classname = ???; return new $classname; } } class Event