Thread: Return self ?
View Single Post
Old 11-12-2008, 10:57 PM   #4 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Quote:
Originally Posted by Runar View Post
I know I used $this in a situation similar to your first example. In your last example, the actual chaining, I did something like this:

PHP Code:
$class->first()->second(); 
I am not sure if there is any significant difference on static and non-static classes when chaining, but I guess other people will answer that question.

Yes, I know how to do actual chainings with the regular classes, it's just the little problem that this isn't a regular class

Quote:
Originally Posted by Salathe View Post
As far as I'm aware, that's not possible at the moment.
Doh! Okey, thanks!
__________________
Tanax is offline  
Reply With Quote