| Author |
Message |
|
booga
Member
Joined: Tue Jan 31, 2006 3:54 am Posts: 5
|
 PHP Properties and Methods tables
Congratulations on a great creation! We love FlashDevelop at our work and many developers are using it.
We are using it for Flash for ActionScript and for PHP (flash remoting). Would it be possible to have the properties and methods side panel available for PHP classes as well? We find this very convient whe we edit AS.
Would it also be possible to parse non class files and show properties and methods? When we are not using Flash Develop to edit an actionscript class we are using it to edit an actionscript include file for the timeline.
Thanks again.
booga
|
| Tue Jan 31, 2006 4:04 am |
|
 |
|
Mika
Admin
Joined: Tue Aug 30, 2005 6:14 pm Posts: 1745 Location: Helsinki, Finland
|
That is a ASCompletion plugin feature. Currently all we provide for other languages is codecoloring.
Someone should start a new plugin for php. I would use it also. 
|
| Tue Jan 31, 2006 6:20 am |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 7470 Location: Paris, France
|
I agree it would be nice to parse non-class files too...
As Actionscript 2 classes will be eventually properly handled I'll try to add some basic AS1/JS/PHP parsing. It will require some non-trivial refactoring so it won't be for tomorrow 
|
| Tue Jan 31, 2006 8:53 am |
|
 |
|
danno
Member
Joined: Tue May 15, 2007 2:25 am Posts: 9 Location: Sydney, AU
|
 PHP in Flashdevelop
Hi I'd like to help building the PHP panel, similar to the actionscript panel with the methods and functions.
Before I start I would like to know if someone is already working on this feature. If someone already has started this, can I help in some way?
Thanks and regards,
|
| Tue May 15, 2007 2:28 am |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 7470 Location: Paris, France
|
 Re: PHP in Flashdevelop
danno wrote: Hi I'd like to help building the PHP panel, similar to the actionscript panel with the methods and functions.
Before I start I would like to know if someone is already working on this feature. If someone already has started this, can I help in some way?
Thanks and regards,
Now that FD3 is well advanced we'll study this question. Some work has been done on a PHP completion plugin but not on the outline view. It was contributed a while ago so I'm not sure about the compatibility. I'll answer more precisely later.
|
| Tue May 15, 2007 2:58 pm |
|
 |
|
danno
Member
Joined: Tue May 15, 2007 2:25 am Posts: 9 Location: Sydney, AU
|
Has there been any progress on this?
I saw that pixelmixer did some syntax highlighting:
http://www.flashdevelop.org/community/v ... hlight=php
I would like to see if anything has been done...
If no progress has been done, I reckon I would start coding it
cheers,
|
| Wed Aug 15, 2007 6:03 am |
|
 |
|
kuzya
Member
Joined: Tue Jan 29, 2008 6:08 pm Posts: 9 Location: Russia
|
I've just copied and modified a little HaXeContext plugin - suprisingly, it worked
Of course, it may be buggy (and I'm sure it is), but basic functionality seems to work fine - it's better than nothing, I suppose
Screenshot:
Plugin:
http://spbgu.ru/upload/kuzya/HTMLContext.dll
(it's called "HTMLContext" because FD uses same context for HTML and PHP files)
|
| Sat Apr 26, 2008 4:11 pm |
|
 |
|
danno
Member
Joined: Tue May 15, 2007 2:25 am Posts: 9 Location: Sydney, AU
|
 THat's awesome!
Thanks a lot kuzya!
I'm going to give it a try straight away.
|
| Sun Apr 27, 2008 2:24 am |
|
 |
|
danno
Member
Joined: Tue May 15, 2007 2:25 am Posts: 9 Location: Sydney, AU
|
 Bugs
Yeah, it has quite a few limitations and bugs.
I've noticed when you press enter
$this->callMethod();
it will put spaces between the "this" and the method.
Like this:
$this - > callMethod();
I like that it does autocomplete when you create a new instance of your class.
Another thing.. is there a way to activate all php files to use this instead of selecting Haxe from the tool menu?
Keep up the good work mate. If there is anything I can help with let me know.
cheers,
http://www.danieltome.com/blog
|
| Sun Apr 27, 2008 7:58 am |
|
 |
|
danno
Member
Joined: Tue May 15, 2007 2:25 am Posts: 9 Location: Sydney, AU
|
 More stuff
In my previous post I meant to say "Syntax menu" instead of "tool menu".
Also I loaded another bigger class and when activating haxe in the syntax menu I got this error:
Object reference not set to an instance of an object.
at ASCompletion.Model.MemberModel.ParametersString()
at ASCompletion.Model.MemberModel.ToString()
at ASCompletion.PluginUI.UpdateView(FileModel aFile)
And the outline panel didn't show anything.
cheers,
|
| Sun Apr 27, 2008 8:07 am |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 7470 Location: Paris, France
|
This is insteresting but the completion & reformat do not expect '::' or '->' for property access. This won't be an easy thing to fix - I'll think about it.
|
| Sun Apr 27, 2008 10:25 am |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 7470 Location: Paris, France
|
Good news everyone (I guess): I hacked a basic, working, PHP Context.
It's in the SVN and I fixed the completion engine to (somewhat) support PHP's dot syntax (->).
Now FYI I personally won't work on it so it's up to you to improve it (I'll only maintain code completion support for it). Mainly it is missing a declaration for PHP global functions.
PS: several DLLs are affected by this changes (ASCompletion, AS2Context, AS3Context) so if you want to test PHPContext with beta7 you'll have to update all these DLLs.
|
| Sun Apr 27, 2008 7:38 pm |
|
 |
|
kuzya
Member
Joined: Tue Jan 29, 2008 6:08 pm Posts: 9 Location: Russia
|
Actually I didn't mean autocomplete feature at all - just methods and variables in outline panel  As Philippe mentioned, it's not easy to fix, so I'm glad that my post forced him to do it in a right way 
|
| Sun Apr 27, 2008 10:45 pm |
|
 |
|
fd_alias
Member
Joined: Sun Jul 29, 2007 10:14 pm Posts: 48 Location: cape town, south africa
|
 PHP Context
Thank you Philippe!!
|
| Sun Apr 27, 2008 10:52 pm |
|
 |
|
ROSE1976
Member
Joined: Wed Apr 04, 2007 9:14 pm Posts: 39
|
Youhouhhouuhouuuuuuuu!!!!!!
Thanks!
_________________ http://www.atdown.fr
|
| Thu May 01, 2008 10:56 pm |
|
|