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

2005-01-19 Thread Richard Lynch
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

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

2005-01-19 Thread Jochem Maas
Rory McKinley wrote: Hi All This is probably just a case of me being Mr Thicky, but maybe someone can point out the error mf my ways: I have two classes, call them admin and module. Admin stores login details as well as a pointer to the DB connection. Module will run various queries. To do that

[PHP] Storing a reference to an object in another object

2005-01-19 Thread Rory McKinley
Hi All This is probably just a case of me being Mr Thicky, but maybe someone can point out the error mf my ways: I have two classes, call them admin and module. Admin stores login details as well as a pointer to the DB connection. Module will run various queries. To do that it needs access to t