FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Autocomplete Dynamic methods and properties

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
Raymond Irving
Posted via mailing list.





PostPosted: Fri Oct 09, 2009 4:10 am    Post subject: Autocomplete Dynamic methods and properties Reply with quote

Hello,

How are documentation for dynamic methods and properties handled in 6.8?

It would be good to have a way to let netbeans know that a method is to be added to the class:

@method <type> <classname>->name($param) <description>

for example:

@method String MyClass->method1($a,$b) Filter strings;

Class name is optional.

This way a developer can use the __call() magic method to allow dynamic methods to be called from a class while extending the class documentation and netbeans autocomplete list.

The same could work for dynamic properties

Here's another solution:

@autocomplete <return-type> <class-name>->method($a,$b,...) <description>
@autocomplete <return-type> <class-name>::method($a,$b,...) <description>
@autocomplete <return-type> <class-name>->property <description>
@autocomplete <return-type> <class-name>::property <description>

What do you think?

__
Raymond Irving
Back to top
Tomas Mysik
Posted via mailing list.





PostPosted: Fri Oct 09, 2009 7:14 am    Post subject: Autocomplete Dynamic methods and properties Reply with quote

Hi,

Dne pátek 09 října 2009 06:10:15 Raymond Irving napsal(a):
Quote:
@method <type> <classname>->name($param) <description>

this works already in the development build [1].

Tomas
[1] http://bertram.netbeans.org/hudson/job/PHP-build/?
--
Tomas Mysik
address-removed
Back to top
Raymond Irving
Posted via mailing list.





PostPosted: Sun Oct 11, 2009 12:51 am    Post subject: Autocomplete Dynamic methods and properties Reply with quote

Sweet! Now only the @property tag is needed.

I will give it a try in 6.8 M2

Best regards,
__
Raymond Irving

--- On Fri, 10/9/09, Tomas Mysik <[i]address-removed>[/i] wrote:
Quote:

From: Tomas Mysik <address-removed>
Subject: Re: Autocomplete Dynamic methods and properties
To: address-removed
Date: Friday, October 9, 2009, 2:13 AM

Hi,

Dne pátek 09 října 2009 06:10:15 Raymond Irving napsal(a):
Quote:
@method <type> <classname>->name($param) <description>

this works already in the development build [1].

Tomas
[1] http://bertram.netbeans.org/hudson/job/PHP-build/?
--
Tomas Mysik
[url=/mc/compose?to=address-removed]address-removed[/url]


]address-removed[/url]
]address-removed[/url]


Back to top
Tomas Mysik
Posted via mailing list.





PostPosted: Mon Oct 12, 2009 9:47 am    Post subject: Autocomplete Dynamic methods and properties Reply with quote

Hi,

Dne neděle 11 října 2009 02:51:13 Raymond Irving napsal(a):
Quote:
Sweet! Now only the @property tag is needed.

this tag is already supported for a long time (together with @property-read
and @property-write tags).

Tomas
--
Tomas Mysik
address-removed
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB