Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

"quote,check,install,remove and keys" functions in module's files


2 replies to this topic

#1 amd.miri

  • Community Member
  • 15 posts
  • Real Name:Miri
  • Gender:Female

Posted 25 November 2011, 14:44

Hello,

I'm new to oscommerce and I want to develop a module.
In the first file of the module which contains the class of the module, I saw that there are some functions like "quote,check,install,remove and keys" (class methods).
can somebody please explain me what these functions do?

ps: I think for the install or the remove it's clear, but not for the others.

thanks in advance
Miri

#2 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 25 November 2011, 22:09

Quote is an optional method used by shipping modules to return a shipping quote.

Check checks to see if the module is installed and enabled.

Keys is an array of the database keys used by the install method. Keys are mainly used by the remove method to uninstall the module.

Install is used to add the database fields when the module is installed.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#3 amd.miri

  • Community Member
  • 15 posts
  • Real Name:Miri
  • Gender:Female

Posted 28 November 2011, 09:08

thanks for your explication Jim ;)