  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: payment.php,v 1.37 2003/06/09 22:26:32 hpdl Exp $ |
| |
| 3 | + | $Id: payment.php 1739 2007-12-20 00:52:16Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
7 | 7 | | |
  |
8 | | - | Copyright (c) 2003 osCommerce |
| |
| 8 | + | Copyright (c) 2007 osCommerce |
|
9 | 9 | | |
| |
10 | 10 | | Released under the GNU General Public License |
| |
11 | 11 | | */ |
| |
|
|
 |
… |
|
122 | 122 | | return $js; |
| |
123 | 123 | | } |
| |
124 | 124 | | |
  |
| 125 | + | function checkout_initialization_method() { |
| |
| 126 | + | $initialize_array = array(); |
| |
| 127 | + | |
| |
| 128 | + | if (is_array($this->modules)) { |
| |
| 129 | + | reset($this->modules); |
| |
| 130 | + | while (list(, $value) = each($this->modules)) { |
| |
| 131 | + | $class = substr($value, 0, strrpos($value, '.')); |
| |
| 132 | + | if ($GLOBALS[$class]->enabled && method_exists($GLOBALS[$class], 'checkout_initialization_method')) { |
| |
| 133 | + | $initialize_array[] = $GLOBALS[$class]->checkout_initialization_method(); |
| |
| 134 | + | } |
| |
| 135 | + | } |
| |
| 136 | + | } |
| |
| 137 | + | |
| |
| 138 | + | return $initialize_array; |
| |
| 139 | + | } |
| |
| 140 | + | |
  |
125 | 141 | | function selection() { |
| |
126 | 142 | | $selection_array = array(); |
| |
127 | 143 | | |