View unanswered posts | View active topics


Reply to topic  [ 52 posts ]  Go to page 1, 2, 3, 4  Next
PHP Properties and Methods tables 
Author Message
Member

Joined: Tue Jan 31, 2006 3:54 am
Posts: 5
Post PHP Properties and Methods tables
Congratulations on a great creation! We love FlashDevelop at our work and many developers are using it. :D

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
Profile
Admin

Joined: Tue Aug 30, 2005 6:14 pm
Posts: 1745
Location: Helsinki, Finland
Post 
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
Profile E-mail WWW
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 7470
Location: Paris, France
Post 
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
Profile WWW
Member

Joined: Tue May 15, 2007 2:25 am
Posts: 9
Location: Sydney, AU
Post 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
Profile WWW
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 7470
Location: Paris, France
Post 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
Profile WWW
Member

Joined: Tue May 15, 2007 2:25 am
Posts: 9
Location: Sydney, AU
Post 
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
Profile WWW
Member

Joined: Tue Jan 29, 2008 6:08 pm
Posts: 9
Location: Russia
Post 
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:

Image

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
Profile
Member

Joined: Tue May 15, 2007 2:25 am
Posts: 9
Location: Sydney, AU
Post THat's awesome!
Thanks a lot kuzya!
I'm going to give it a try straight away.


Sun Apr 27, 2008 2:24 am
Profile WWW
Member

Joined: Tue May 15, 2007 2:25 am
Posts: 9
Location: Sydney, AU
Post 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
Profile WWW
Member

Joined: Tue May 15, 2007 2:25 am
Posts: 9
Location: Sydney, AU
Post 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
Profile WWW
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 7470
Location: Paris, France
Post 
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
Profile WWW
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 7470
Location: Paris, France
Post 
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
Profile WWW
Member

Joined: Tue Jan 29, 2008 6:08 pm
Posts: 9
Location: Russia
Post 
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 :D


Sun Apr 27, 2008 10:45 pm
Profile
Member

Joined: Sun Jul 29, 2007 10:14 pm
Posts: 48
Location: cape town, south africa
Post PHP Context
Thank you Philippe!!


Sun Apr 27, 2008 10:52 pm
Profile
Member

Joined: Wed Apr 04, 2007 9:14 pm
Posts: 39
Post 
Youhouhhouuhouuuuuuuu!!!!!!

Thanks!

_________________
http://www.atdown.fr


Thu May 01, 2008 10:56 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 52 posts ]  Go to page 1, 2, 3, 4  Next

Who is online

Users browsing this forum: No registered users and 3 guests


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

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.