Posted by Jason Barnett on 10/04/35 11:05
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
Navigation:
[Reply to this message]
|