Search found 1 match
- Mon Nov 05, 2007 2:01 pm
- Forum: PHP - Code
- Topic: Name of calling class using static methods
- Replies: 0
- Views: 987
Name of calling class using static methods
I'm trying to find the name of the current class when calling a static method. To illustrate, let me define a few classes: abstract class AbstractClass { public function foo() { return class_name($this); # class_name(); gives just "AbstractClass" } public static function bar() { return cla...