ZenCart_Documentation  1.5.0
http://www.collinsharper.com
C:/xampp/htdocs/zen-cart/admin/includes/classes/payment_module_info.php
Go to the documentation of this file.
00001 <?php
00002 //
00003 // +----------------------------------------------------------------------+
00004 // |zen-cart Open Source E-commerce                                       |
00005 // +----------------------------------------------------------------------+
00006 // | Copyright (c) 2003 The zen-cart developers                           |
00007 // |                                                                      |
00008 // | http://www.zen-cart.com/index.php                                    |
00009 // |                                                                      |
00010 // | Portions Copyright (c) 2003 osCommerce                               |
00011 // +----------------------------------------------------------------------+
00012 // | This source file is subject to version 2.0 of the GPL license,       |
00013 // | that is bundled with this package in the file LICENSE, and is        |
00014 // | available through the world-wide-web at the following url:           |
00015 // | http://www.zen-cart.com/license/2_0.txt.                             |
00016 // | If you did not receive a copy of the zen-cart license and are unable |
00017 // | to obtain it through the world-wide-web, please send a note to       |
00018 // | [email protected] so we can mail you a copy immediately.          |
00019 // +----------------------------------------------------------------------+
00020 //  $Id: payment_module_info.php 1969 2005-09-13 06:57:21Z drbyte $
00021 //
00022 
00023 
00024   class paymentModuleInfo {
00025     var $payment_code, $keys;
00026 
00027 // class constructor
00028     function paymentModuleInfo($pmInfo_array) {
00029       global $db;
00030       $this->payment_code = $pmInfo_array['payment_code'];
00031 
00032       for ($i = 0, $n = sizeof($pmInfo_array) - 1; $i < $n; $i++) {
00033         $key_value = $db->Execute("select configuration_title, configuration_value,
00034                                           configuration_description
00035                                    from " . TABLE_CONFIGURATION . "
00036                                    where configuration_key = '" . $pmInfo_array[$i] . "'");
00037 
00038         $this->keys[$pmInfo_array[$i]]['title'] = $key_value->fields['configuration_title'];
00039         $this->keys[$pmInfo_array[$i]]['value'] = $key_value->fields['configuration_value'];
00040         $this->keys[$pmInfo_array[$i]]['description'] = $key_value->fields['configuration_description'];
00041       }
00042     }
00043   }
00044 ?>
 All Data Structures Namespaces Files Functions Variables Enumerations