Try get_called_class() See php.net/manual/en/function.get-called-cl... From the docs: class foo { static public function test() { var_dump(get_called_class()); } } class bar extends foo { } foo::test(); bar::test() The above example will output: string(3) "foo" string(3) "bar.
Try get_called_class(); See php.net/manual/en/function.get-called-cl... From the docs: class foo { static public function test() { var_dump(get_called_class()); } } class bar extends foo { } foo::test(); bar::test(); The above example will output: string(3) "foo" string(3) "bar.
Correct answer, but I noticed one comment: // framework needs, can't modify - if he can't modify that line... I'm not sure he will be able to use this solution. – OZ_ Jun 5 at 20:58 I can change $className variable before. This is a good solution and there is a solution for get_called_class for PHP 5.2.4 too.Php.Net/manual/en/function.
Get-called-class. Php – Pentium10 Jun 5 at 21:01 1 @OZ_, The way I read that line, is that the framework needs the class name. Passing the top level class name should have no negitive effect.
– Petah Jun 5 at 21:01 @Pentium10, look in the comments of that doc page, there are alternatives to that function for PHP 5.2 – Petah Jun 5 at 21:03 @Petah that is what I said. – Pentium10 Jun 5 at 21:04.
Constant __CLASS__, used in class Baseresidence will always contain Baseresidence. You can't change it.
Ok, show me how you can redefine __CLASS__ constant. With example of code. – OZ_ Jun 5 at 21:01.
This enables static inheritance, among other things. Functions bound with the fat arrow. On the object — useful in constructors and setter functions.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.