ClassViewer Support for PHP 5 OOP?

Integrated Development Environment issues like IntelliTips, Resource Editor, and the ClassViewer (with the Tags tab selected in the Workspace Manager).

ClassViewer Support for PHP 5 OOP?

Postby royb » Wed Feb 01, 2006 3:09 pm

Does the ClassViewer for for PHP 5 Object Oriented code? I tried the demo about 6 months ago and couldn't get it to work. I'm wondering if any of the maintenance releases have addressed this.
User avatar
royb
Newbie
 
Posts: 5
Joined: Wed Feb 01, 2006 12:00 am

Re: ClassViewer Support for PHP 5 OOP?

Postby Acid » Wed May 03, 2006 7:49 pm

I wish i could use it with javascript and JScript.NET there is no proper parser for javascript like langs. And i don't have the time to write one. I guess the same goes for PHP...
User avatar
Acid
Basic User
Basic User
 
Posts: 21
Joined: Thu Jan 26, 2006 12:00 am

Re: ClassViewer Support for PHP 5 OOP?

Postby royb » Wed May 03, 2006 8:38 pm

I gave up and purchased the Zend PHP editor, which does understand class constructs. Bummer, really, since I like the IDM products better.
User avatar
royb
Newbie
 
Posts: 5
Joined: Wed Feb 01, 2006 12:00 am

Re: ClassViewer Support for PHP 5 OOP?

Postby codec_7 » Wed May 03, 2006 11:03 pm

royb, I never saw your question (wasn't really checking the forums back then:)

I use the UEStudio classviewer with PHP 4 and 5 classes, it works fine.

If you add the 'gl_php.php' file from the UEStudio program files directory to your project, you also get function completion and built-in classes.

Sorry I couldn't have been of assistance sooner...
User avatar
codec_7
Newbie
 
Posts: 5
Joined: Thu Feb 16, 2006 12:00 am

Re: ClassViewer Support for PHP 5 OOP?

Postby royb » Wed May 03, 2006 11:33 pm

Thanks for the reply, codec_7. I'm just starting to get working on doing OOP stuff in PHP 5, so I was hoping that UEStudio would be smart enough to support this functionality.

My fear is always that everything is being geared toward compiled languages, and the PHP and Python people will be left out in the cold with a high percentage of functionality that we can't use.

I guess I'll go back and look for that upgrade link.

Where can I find 'gl_php.php'?
User avatar
royb
Newbie
 
Posts: 5
Joined: Wed Feb 01, 2006 12:00 am

Re: ClassViewer Support for PHP 5 OOP?

Postby royb » Thu May 04, 2006 12:33 am

Okay, I just downloaded and installed the 30 day eval of UEStudio '05. I've opened up my PHP OOP script inside the editor. I'm clicking on the ClassViewer icon and it's not showing me anything.

What am I doing wrong? I've attached my PHP script for others to test with.

Roy
User avatar
royb
Newbie
 
Posts: 5
Joined: Wed Feb 01, 2006 12:00 am

Re: ClassViewer Support for PHP 5 OOP?

Postby Acid » Thu May 04, 2006 7:27 am

All the info that is showed in the class browser is generated by a program called cTags. It parses your source files to some sort of tag based file wich is read by the class viewer, which in turn will render your program structure out of it.

This works fine for quite alot of langs because support has been baked in to cTags for those (Java, C(++), eiffel, vera). Support for scripting langs is quite limited unless you write it yourself. There are some good site about how to write parsers using cTags. And the structure of a tag file, most of it is available at cTags and you can always google.

For the source of cTags: http://ctags.sourceforge.net
IDM download: from http://ftp.ultraedit.com/src (cTags + GNU regexp)
User avatar
Acid
Basic User
Basic User
 
Posts: 21
Joined: Thu Jan 26, 2006 12:00 am

Re: ClassViewer Support for PHP 5 OOP?

Postby roland » Thu May 04, 2006 2:04 pm

I don't use UEStudio yet, but I think you need to add your source files to a project before you can make use of the class viewer (and some other features).
User avatar
roland
Basic User
Basic User
 
Posts: 30
Joined: Sun Aug 15, 2004 11:00 pm

Re: ClassViewer Support for PHP 5 OOP?

Postby codec_7 » Fri May 05, 2006 2:02 am

roland is correct, you need to create a project before the class viewer will work.

I'm not sure that ctags is necessary for a PHP project. Things seem to work fine even without it.

royb, gl_php.php is in the 'LST' subdirectory of the UEStudio program files folder. Add this file to your project. Then try typing 'array_key_exists(' in the editor. Lovely :)
User avatar
codec_7
Newbie
 
Posts: 5
Joined: Thu Feb 16, 2006 12:00 am

Re: ClassViewer Support for PHP 5 OOP?

Postby royb » Fri May 05, 2006 4:46 am

Hey Codec_7,

Yep, that works, but a click on the ClassViewer icon still doesn't do anything.

Roy
User avatar
royb
Newbie
 
Posts: 5
Joined: Wed Feb 01, 2006 12:00 am


Return to IDE (ClassViewer, IntelliTips, ...)

cron