Reply to Re: [PHP] Storing a reference to an object in another object

Your name:

Reply:


Posted by Richard Lynch on 01/20/05 00:52

Rory McKinley wrote:
> public function checkConnection()
> {
> return $this->admin_instance->checkConnection()

WILD GUESS!!!

In early days of PHP objects, you sometimes couldn't use two arrow
operators with, errr, references???

So an easy way to maybe fix this and move on with your life:

$admin = $this->admin_instance;
return $admin->checkConnectino();

Seems kinda bogus to me, but...

Hey, you're missing a ';' at the end of that line there... Hopefully not
in the real code... Or maybe it's not needed before the } in this
construct.

--
Like Music?
http://l-i-e.com/artists.htm

[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

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