[PHP] Re: [PHP5] How to knwo object class name in a function called statically

2004-10-07 Thread M. Sokolewicz
Frédéric hardy wrote: Hello - I have this code : abstract class foo { private __construct() {} public static getInstance() { static $instance = null; if (is_null($instance) == false) return $instance; else { $class = __CLASS__; return new

Re: [PHP] Re: [PHP5] How to knwo object class name in a function called statically

2004-10-07 Thread Marek Kilimajer
M. Sokolewicz wrote: Frédéric hardy wrote: Hello - I have this code : abstract class foo { private __construct() {} public static getInstance() { static $instance = null; if (is_null($instance) == false) return $instance; else { $class =

Re: [PHP] Re: [PHP5] How to knwo object class name in a function

2004-10-07 Thread M. Sokolewicz
Marek Kilimajer wrote: M. Sokolewicz wrote: Frédéric hardy wrote: Hello - I have this code : abstract class foo { private __construct() {} public static getInstance() { static $instance = null; if (is_null($instance) == false) return $instance; else {