Hello anyone. Here is the situation. I have two classes: Action, and MyAction, last one is declared as:
class MyAction extends Action {/* some methods here */}
All i need is method in Action class(only in it, cuz there will be a lot of inherited classes, and i don't want to implement that method in all of them), which will return classname from static call. Here is what 'm talking about:
Class Action {
function n(){/* some actions */}
}
And when i call it:
MyAction::n(); // it should return "MyAction"
But each declaration in parent class have access only to parent class(__CLASS__ variable has value "Action").
Is there any possible ways to do that?