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.
Codehint selection menuCodehint parameter menu
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" />
Directly AFTER add that code insert the contents of the add.xml file.
<function pattern="zip_read(resource zip)" doctypes="PHP_MySQL" caseSensitive="true" />
Restart Dreamweaver - All Done
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!
This contribution is original work and nothing is borrowed. Enjoy!