Reply to Re: Get name of extending class with static method call

Your name:

Reply:


Posted by Torsten Roehr on 10/04/32 11:05

"Jason Barnett" <jason.barnett@telesuite.com> wrote in message
news:20050111164037.7759.qmail@pb1.pair.com...
> 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?

__CLASS__ contains the name of the class the method is in. In my sample it
would be 'Car' and not 'Porsche'.

What I don't understand is why the behaviour of debug_backtrace() has been
changed!?!

Regards, Torsten

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация