Get class name when called statically?
From: Rick (rick_at_intelligence-direct.com)
Date: 09/30/04
- Next message: Dawid Szałęga: "Problem with strtotime()"
- Previous message: Rob Long: "Re: PHP5 Bug?? extended abstract type enforcement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Sep 2004 11:21:46 +0000
Class Foo {
function Bob {
return NAME_OF_CLASS
}
}
Class Goo Extends Foo {
}
echo Goo::Bob();
What I want to see returned is 'Goo'
__CLASS__ returns 'Foo' and as its being called statically get_class($this)
is empty.
Any ideas?
Rick
- Next message: Dawid Szałęga: "Problem with strtotime()"
- Previous message: Rob Long: "Re: PHP5 Bug?? extended abstract type enforcement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]