Hi there,
I have an object structure, whereby a location object contains a method
to return it's map object. The map object contains a method to return
it's URL.
I expected to have the ability to get the url of a location's map with
the floowing statement:
print $this->Location->GetMap()->GetUrl();
This works in PHP5, but in PHP4 it causes a parse error (the application
has to run on PHP4 for the moment).
I'm currently working around this limitation as so:
$locationMap = $this->Location->GetMap();
print $locationMap->GetUrl();
Unfortunatly this senario is occuring in dozens of palces in the
application, and is quite unsightly compared to the PHP5 syntax.
Is there any other syntax in PHP4 to allow me to concisely call a method
on a return object? eg. ($this->Location->GetMap())->GetUrl() .. which
doens't work.
Thanks for any help,
Karl Glennon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php