NuSphere Forums Forum Index
NuSphere Forums


Thu Sep 03, 2009 7:12 am
Replies: 13
Views: 5364
As I see it, the simple solution is:

/**
* Method description...
*
* @return this Instance of this class.
*/

public function test() {
return $this;
}

Sun Aug 23, 2009 3:06 am
Replies: 6
Views: 3308
IMHO, any method that returns $this should automatically be picked up as the object the method was called from. It can be nothing else...

Thu Aug 06, 2009 2:39 am
Replies: 13
Views: 5364
This looks like a similar problem to mine... ( http://forum.nusphere.com/viewtopic.php?t=6315 ) How to specify that given method returns $this (the derived class type) at the end?

Wed Aug 05, 2009 3:49 am
Replies: 6
Views: 3308
Hi,

i'm trying to write some code using "fluent interface" model. It means that every class method returns $this after comletion, so the programmer can write code like this:

$value = G ...

Sun Jun 01, 2008 4:40 am
Replies: 4
Views: 5406
"Typically, as soon as I start the project in debug mode I get a crash."

I don't know if this is true (because I'm not a nusphere programmer), but I think, that phpEd is using custom buil ...

Thu May 29, 2008 5:33 am
Replies: 4
Views: 5406
Maybe you should try to reinstall phpED in c:\program files\ directory? (yes, in the directory containing 64-bit applications). It doesn't change anything on runtime, but maybe you didn't change all t ...

Wed May 28, 2008 9:44 am
Replies: 17
Views: 8249
Yes, it looks like a Windows bug (under any OS, even 32-bit versions).Windows stops sending WM_SIZE message if there is too many nested child windows and one of them is trying to resize itself while i ...

Wed May 28, 2008 7:20 am
Replies: 11
Views: 3608
If I understand correctly, You want to have code completion working for variables accessed only by getters/setters? If its true, then do the following trick


class test
{
// its public, so ...
Page 1 of 1
All times are GMT - 5 Hours