[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
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;
* 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() {
>
3 matches
Mail list logo