Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Code Hints Question

Guest
Dec 21, 2010 Dec 21, 2010

So, I've been trying the trial for CS5 now that it has some awesome PHP support. One thing I would like to do though is add definitions for my own classes which I use for almost every page I write (specifically sql and page content classes). I have found that I can edit the files in the 'CodeHints' directory to create classes like the predefined classes that already exist (like Exception() ), but this doesn't really address what I want, as this is the same as just including the file with the definition of my class. Ultimately, I'd like a proper definition of the functions of my class, involving all possible parameter combinations, as some of them have been defined to take different sets of parameters (much like JavaScripts for - If you type "for(" in a JavaScript document in CS5 or possibly CS4, you'll see what I mean). Is there any way to do this?

Sorry for the long-winded question.

Thanks

Guy.

TOPICS
Server side applications
570
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 21, 2010 Dec 21, 2010

ScopeyNZ wrote:

One thing I would like to do though is add definitions for my own classes which I use for almost every page I write (specifically sql and page content classes).

Thread moved to the Dreamweaver Application Development forum, which deals with PHP and other server-side issues.

Dreamweaver automatically creates code hints for custom classes and functions. You don't need to edit any configuration files.

Code hints are generated automatically through introspection. For code hints to appear, the definition file needs to be attached to the script you're working in, using require_once() for example. If your code library is not directly linked to the current page, you can get Dreamweaver to generate code hints by setting up Site Specific Code Hints from the Site menu.

For an overview of the PHP code hinting features, including Site Specific Code Hints, see this video that I made for Adobe TV: http://tv.adobe.com/watch/learn-dreamweaver-cs5/using-php-code-hinting-in-dreamweaver-cs5.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 21, 2010 Dec 21, 2010

Hi David..

I am well aware that Dreamweaver generates code hints etc.

However, I asked if I could define the code hints a little more, as (although dreamweaver does a great job, ) some of my functions are a little complex, and do different things based on the type of variables that were passed (bool, string, int, etc.), and some of them just get the attributes from func_get_args(); .

I understand that I can make it work a bit with func_get_args by putting some useless variables in the argument list in the definition of my function, but in some cases this will not do!

I'd also like to say that I have (sort-of) figured out how to do this with just functions, but class functions I havn't been able to figure out yet.

Copied from my first post:

Ultimately, I'd like a proper definition of the functions of my class,  involving all possible parameter combinations, as some of them have been  defined to take different sets of parameters (much like JavaScripts' for  - If you type "for(" in a JavaScript document in CS5 or possibly CS4,  you'll see what I mean). Is there any way to do this?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 22, 2010 Dec 22, 2010
LATEST

ScopeyNZ wrote:

However, I asked if I could define the code hints a little more,

The video that I directed you to covers all the code hinting features that I am aware of in Dreamweaver. It sounds as though the type of code hinting you're looking for would be best provided through support for PHPDoc comments. Unfortunately, Dreamweaver doesn't support PHPDoc.

I suggest that you submit an enhancement request through the form at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform. That form goes directly to the product team for consideration.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines