View Single Post
  #1 (permalink)  
Old 2006-05-19, 05:10 PM
jaredhite1 jaredhite1 is offline
Junior Member
 
Join Date: Apr 2006
Posts: 6
jaredhite1 is on a distinguished road
Default Better auto-completion

Hello-
I write a lot of classes in PHP, and usually have a bit of a complex object model. I've been disappointed at the inability of every editor I try to "figure out" what types variables are beyond the very simple case of:

PHP Code:
$x = new MyClass(); 
Does anybody know of any editors that can do this a bit smarter? Something like this:
PHP Code:
class Test1
{
    var 
$t1member;

class 
Test2
{
    var 
$t2member;
}
$t1 = new Test1();
$t1->t1member = array();
$t1->t1member[0] = new Test2(); 
Now from here on out, I would like my IDE to have figured out that Test1.t1member is an array of Test2 objects, and respond with intellisense options appropriately after typing something like "$t1->t1member[17]->". Not just for $t1, but for any object of type or inheriting from type Test1.
Continuing code...
PHP Code:
$t1->t1member[0]->t2member "hello world";
$x $t1->t1member[0]->t2member
And here I would expect my IDE to know that $x is probably a string type.

Does anybody know of any editors with this kind of capability? I've about given up, so I'm currently writing my own. If I were to do so and include the other standard features you see in other editors (ftp, collapsible side/bottom panels, complex find/replace in files, syntax highlighting, interactive debugging, etc.), would anybody be interested enough to buy it if it were reasonably priced?

Thanks for recommendations and opinions,
Jared
Reply With Quote
Sponsored Links