NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Code Completion


Joined: 27 Mar 2006
Posts: 77
Reply with quote
I like the new code completion while typing in the middle of strings, its great.

Is code compeletion for __get member functions in PhpED's future?
View user's profileFind all posts by twSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8256
Reply with quote
all __get's related properties (members) are `resolved` during run time. I think it's nearly impossible to guess what is passed into __get() without running the script.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 27 Mar 2006
Posts: 77
Reply with quote
Understandable. Since it is a function you can do a lot with it.

I was thinking that since we only use it to make classes read only, that is what everyone else uses it for. Your right though, it is much more then that and needs to be handled at run time.

Alas, dynamic languages sure can be a pain sometimes...
View user's profileFind all posts by twSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8256
Reply with quote
I think, it's PHPDOC comments where you may have some "hints" for code completion and we'd extend our support for such hints for "virtual" members.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 27 Mar 2006
Posts: 77
Reply with quote
you mean like adding @access public to every private or protected member?
View user's profileFind all posts by twSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8256
Reply with quote
no, I mean llike adding @var before each real member

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 27 Mar 2006
Posts: 77
Reply with quote
Well that would make me happy, I already document with @var.
View user's profileFind all posts by twSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8256
Reply with quote
the only little problem with @var is that it does not contain member's name... and it always relates to the member or variable below the doc part.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 27 Mar 2006
Posts: 77
Reply with quote
hmmmm, your right, and I can't think of any other tags that might work for it.

Unless you were to define your own... Wink
View user's profileFind all posts by twSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8256
Reply with quote
and that's what I meant under "extending phpdoc" Smile
why not?

we can define something like this:
@member <name> <type> <comment>

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 27 Mar 2006
Posts: 77
Reply with quote
Works for me. Its easy to run PhpDoc with custom tags.

Does PhpEd already do this with any tags?
View user's profileFind all posts by twSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8256
Reply with quote
No, all the tag names are built-in in PhpED. It uses them for its code-completion needs, not for documenting as you might guess.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Code Completion
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 2  

  
  
 Reply to topic