Codehint Library for Macromedia Dreamweaver
osCommerce-ms2 API

What does this contribution do?

This contribution adds the codehints for the osCommerce MS-2 API to the Macromedia Dreamweaver Library. Upon typing "tep_" the osC selection menu is presented.

Screenshots

Codehint selection menu

Codehint parameter menu

How do I install this contribution?

In the program files directory find C:\Program Files\Macromedia\Dreamweaver MX 2004\Configuration\CodeHints\CodeHints.xml

Method 1 - The easiest method is to overwrite the XML file

The CodeHints.xml file is located in the install package as CodeHints.zip

Simply BACKUP your current CodeHints.xml file and overwrite with the one provided. This file has been tested with Macromedia Dreamweaver MX 2004.

If anything goes wrong just delete the file and replace with the backup copy.

Method 2 - Edit C:\Program Files\Macromedia\Dreamweaver MX 2004\Configuration\CodeHints\CodeHints.xml

Find this code:

<function pattern="zip_open(string filename)" doctypes="PHP_MySQL" caseSensitive="true" />
<function pattern="zip_read(resource zip)" doctypes="PHP_MySQL" caseSensitive="true" />

Directly AFTER add that code insert the contents of the add.xml file.

Restart Dreamweaver - All Done

Support

osCommerce is a community driven organization and as such the support base will fall entirely on the forum members. All the base functions are included (113 of them) but NONE of the class methods. It should be pretty easy to add them by using a PHP script capturing them with get_declared_classes() in combination with get_class_methods().

Also, not all the functions have the parameter hints and only the most used have been populated. If you add the parameters to the XML file be sure to upload your version so everyone can benefit! As a word of advice: be sure to pay special attention to the parameters and make sure there are no quotation marks since that will break the XML tag. Convert them to single quotes and everything will be OK.

If you use this contribution and find it useful a small donation can be made via PayPal. Thank you for your support!

Enter Donation amount: $

Credits

This contribution is original work and nothing is borrowed. Enjoy!