Possible Duplicate:
How to tell whether I’m static or an object?
Let's say I have a FooClass with a bar() method. Inside of the bar() method, is there any way to tell if it's being called statically or not, so I can treat these two cases differently?
FooClass::bar();
$baz = new FooClass();
$baz->bar();