[ Index ]
 

Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/admin/includes/classes/ -> payment_module_info.php (source)

   1  <?php
   2  //

   3  // +----------------------------------------------------------------------+

   4  // |zen-cart Open Source E-commerce                                       |

   5  // +----------------------------------------------------------------------+

   6  // | Copyright (c) 2003 The zen-cart developers                           |

   7  // |                                                                      |

   8  // | http://www.zen-cart.com/index.php                                    |

   9  // |                                                                      |

  10  // | Portions Copyright (c) 2003 osCommerce                               |

  11  // +----------------------------------------------------------------------+

  12  // | This source file is subject to version 2.0 of the GPL license,       |

  13  // | that is bundled with this package in the file LICENSE, and is        |

  14  // | available through the world-wide-web at the following url:           |

  15  // | http://www.zen-cart.com/license/2_0.txt.                             |

  16  // | If you did not receive a copy of the zen-cart license and are unable |

  17  // | to obtain it through the world-wide-web, please send a note to       |

  18  // | license@zen-cart.com so we can mail you a copy immediately.          |

  19  // +----------------------------------------------------------------------+

  20  //  $Id: payment_module_info.php 1969 2005-09-13 06:57:21Z drbyte $

  21  //

  22  
  23  
  24    class paymentModuleInfo {
  25      var $payment_code, $keys;
  26  
  27  // class constructor

  28      function paymentModuleInfo($pmInfo_array) {
  29        global $db;
  30        $this->payment_code = $pmInfo_array['payment_code'];
  31  
  32        for ($i = 0, $n = sizeof($pmInfo_array) - 1; $i < $n; $i++) {
  33          $key_value = $db->Execute("select configuration_title, configuration_value,
  34                                            configuration_description
  35                                     from " . TABLE_CONFIGURATION . "
  36                                     where configuration_key = '" . $pmInfo_array[$i] . "'");
  37  
  38          $this->keys[$pmInfo_array[$i]]['title'] = $key_value->fields['configuration_title'];
  39          $this->keys[$pmInfo_array[$i]]['value'] = $key_value->fields['configuration_value'];
  40          $this->keys[$pmInfo_array[$i]]['description'] = $key_value->fields['configuration_description'];
  41        }
  42      }
  43    }
  44  ?>


Généré le : Mon Nov 26 16:45:43 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics