osHelpers - Help for your osCommerce store
 
Google Base Feed Germany
iFrame Defender v1.2
oscommerce Seo
  Seo Pack 2
  SE Friendly URLs
  Session ID Removal
  Title and Meta Tags
  Google Sitemap
Magnum Shopping Cart
  Magnum MVS 8.4 Basic
osCommerce Services
  osc / cre patch
  Data Entry
  Data Extraction
  bugs and fixing
  Site Transfer
  creloaded Transfer
  Design Special
  Hosting
osCommerce Templates
osCommerce Contributions
  Credit Modules
  Features
  Images
  InfoBoxes
  Languages
  Order Total Modules
  Other
  Payment Modules
  Reports
  Shipping Modules
  Templates/Themes
  Zones
osCommerce Articles
osCommerce Tutorials
  Installing osCommerce
  Configuring your store
  Adding categories
  Adding products
  Adding product attributes
  Configuring currency
  Adding payment modules
  Adding shipping modules
  Configuring sales tax
  Editing your home page
  Editing columns
  Editing header and footer
  Creating specials
  Managing customers
  Sending out a newsletter
  Sending out email
  Managing your banners
  Backup database
CRELoaded Tutorials
  Add Administrators
  Add Article Author
  Additional Images
  Create a New Page
  Define Mainpage
  Disable cc Encryption
  Disable Company Field
  Disable Country
  Disable Date of Birth
  Display broken images
  Easypopulate Export
  Email confirmation
  Insert Faq
  Max Package Weight
  Require Terms of Use
  Affiliate Newsletter
  Enable Cache
CB Power Affiliate
Tell A Friend
 

Tell someone you know about this product.

   OSHELPERS | OSCOMMERCE CONTRIBUTIONS | OTHER | 3373   


oscommerce coreclasses
[3373]
 
 
box_bg_l.gif.
"osCommerce core classes
------------------------
The intention of this so-called contribution is to provide a set of core classes that will bridge the gap between the core components of MS2 and the upcoming MS3 release.

With the initial upload three core components of osCommerce are provided.

osC_Database
osC_Cache
osC_Session
osC_MessageStack
osC_Cookie

osC_MessageStack class is required by the osC_Database class.

osC_Cookie now exists!

The old MS2-2.2 functions have been revised to use the above classes instead, in doing so MS2-2.2 stores can utilize MS2-2.2 specific code and any snippets of MS3 code that they can use or have the ability to start writing any new code in an MS3 type fashion. eg caching queries now becomes so much easier:

(see cache-configuration-readme.txt)
-------------------------
$Qcfg = $osC_Database->query('select configuration_key as cfgKey, configuration_value as cfgValue from :table_configuration');
$Qcfg->bindRaw(':table_configuration', TABLE_CONFIGURATION);
$Qcfg->setCache('configuration');
$Qcfg->execute();

while($Qcfg->next()) {
@define($Qcfg->value('cfgKey'), $Qcfg->value('cfgValue'));
}

$Qcfg->freeResult();
-------------------------

From a developers point of view it might be a good thing to do... and gives scope for improvements
i.e. it isn't perfect (yet?)...

Its long been my opinion that osCommerce should be developed and maintained as contributions.

This could be considered the same as when osCommerce start releasing patches.

By stripping osCommerce into contribution components the osCommerce community can then maintain the code, this may also generate further scope for people that would rather piece together an osCommerce application themselves, and variations of the components could be used, rather than strip and insert, it would then just simply be insert (which is generally easier to do), obviously there needs to be some core components"

 


For more information, visit the official osCommerce contribution webpage.
box_bg_r.gif.
 

osHelpers

osHelpers