Reply to Re: Current class name for use with ::

Your name:

Reply:


Posted by Andy Jeffries on 05/03/06 17:40

On Wed, 03 May 2006 07:20:28 -0700, Ciaran wrote:
> I think that 'self' will not do what you want, in this instance.

Yeah, I found that out after posting...

> This is very annoying behaviour, but there isn't a keyword in PHP5 that
> refers to 'the current class' in the way you want it to. This is under
> discussion for PHP6, and a new keyword apparently may or may not be
> introduced - I'm hoping very much that it will!

You're not the only one.

For now, I've used a member variable. The code's only for my use anyway
(it's not being distributed and I'm the only dev on the team) so it's
fine, but I'd have preferred to keep it all neat.

Thanks for the post though.

Cheers,


Andy


--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

[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

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