Thu Sep 03, 2009 7:12 am |
Replies: 13 |
Views: 7946 |
|
 |
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: 5229 |
|
 |
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: 7946 |
|
 |
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: 5229 |
|
 |
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: 7457 |
|
 |
"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: 7457 |
|
 |
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: 10581 |
|
 |
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: 5256 |
|
 |
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 ...
|