Re: Get name of extending class with static method call

From: Date: Tue, 11 Jan 2005 16:38:55 +0000
Subject: Re: Get name of extending class with static method call
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-206085@lists.php.net to get a copy of this message
M. Sokolewicz wrote:
try using __CLASS__ Torsten Roehr wrote:
This is a good suggestion but I wonder... Torsten do you have a large heirarchy of parent classes or just one parent? E.g. Car -> Sports Car -> Porsche. More importantly will __CLASS__ resolve to the class name that you need... If __CLASS__ works for you then I would go with it. If not can you just send the appropriate class name as a parameter? -- Teach a person to fish... Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html PHP Manual: http://php.net/manual/ php-general archives: http://marc.theaimsgroup.com/?l=php-general&w=2

« previous php.general (#206085) next »