Re: How can I do this -- method chaining

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

 



On 29 Jan 2008, at 19:43, Christoph Boget <jcboget@xxxxxxxxx> wrote:

On Jan 29, 2008 2:37 PM, Paul Scott <pscott@xxxxxxxxx> wrote:
Looks like a repurpose of one of my posts:

http://fsiu.uwc.ac.za/index.php?module=blog&action=viewsingle&postid=gen9Srv59Nme5_7092_1182404204
actually, this is slightly different; here we are talking about being
able to immediately invoke a method  off the call to the constructor,
whereas in your post you chain calls after storing the instance in a
variable in the call to the constructor.

Right, and that's what I was trying to avoid, if possible.

Why? What exactly do you think you're saving by not putting the instance in a variable? I can't think of one good reason to do this.

-Stut

--
http://stut.net/

--
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