[PHP] method chaining

2002-11-11 Thread Terry McBride
Hello, I have a question about php and OO. I want to chain methods together having them performed on the results of the following method. Meaning something like $foo-get(bar)-getBaz(). I get the following error from the script bellow. Parse error: parse error, unexpected T_OBJECT_OPERATOR,

Re: [PHP] method chaining

2002-11-11 Thread Terry McBride
why these decisions went the way the did. Terry - Original Message - From: Maxim Maletsky [EMAIL PROTECTED] To: Terry McBride [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, November 11, 2002 11:20 AM Subject: Re: [PHP] method chaining work around: $obj = $foo-get(bar); $obj

Re: [PHP] method chaining

2002-11-11 Thread Terry McBride
Message - From: Terry McBride [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 11, 2002 4:53 PM Subject: [PHP] method chaining Hello, I have a question about php and OO. I want to chain methods together having them performed on the results of the following method

Re: [PHP] method chaining

2002-11-11 Thread Terry McBride
Vogelsinger [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 11, 2002 12:02 PM Subject: Re: [PHP] method chaining At 17:57 11.11.2002, Terry McBride spoke out and said: [snip] $tmp = $foo-get(bar); // note the $tmp-alterBarSomeWay(); // $tmp

Re: [PHP] method chaining

2002-11-11 Thread Terry McBride
- Original Message - From: Ford, Mike [LSS] [EMAIL PROTECTED] To: 'Terry McBride' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, November 11, 2002 1:33 PM Subject: RE: [PHP] method chaining Apologies for the previous truncated version of this -- dunno what happened

Re: [PHP] method chaining

2002-11-11 Thread Terry McBride
Thanks! Yep, this is good. Thanks for letting me know. http://www.zend.com/engine2/ZendEngine-2.0.pdf It's all been done b4 -- already been brought up :p Terry - Original Message - From: Ford, Mike [LSS] [EMAIL PROTECTED] To: 'Terry McBride' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent