| View previous topic :: View next topic |
| Author |
Message |
Raymond Irving Posted via mailing list.
|
Posted: Fri Oct 09, 2009 4:10 am Post subject: Autocomplete Dynamic methods and properties |
|
|
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.
|
Posted: Fri Oct 09, 2009 7:14 am Post subject: Autocomplete Dynamic methods and properties |
|
|
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.
|
Posted: Sun Oct 11, 2009 12:51 am Post subject: Autocomplete Dynamic methods and properties |
|
|
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.
|
Posted: Mon Oct 12, 2009 9:47 am Post subject: Autocomplete Dynamic methods and properties |
|
|
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 |
|
 |
|
|
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
|
|
|
|