Re: Storing a reference to an object in another object

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux