Object Accessor Chaining
| From: | Tim Perdue | Date: | Mon, 02 Apr 2001 22:50:30 +0000 |
| Subject: | Object Accessor Chaining | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-50641@lists.php.net to get a copy of this message | ||
Hello All -
Just wondering what it would take to get this functionality in PHP:
$this->getFooObject($bar)->getFoo()
Right now, AFAICT, you have to:
$var =& $this->getFooObject($bar);
$var2 = $var->getFoo();
Is that a difficult thing to add in? Who do I have to bribe?
Thanks,
Tim
--
Founder - PHPBuilder.com / Geocrawler.com
Lead Developer - SourceForge
VA Linux Systems