1: <?php
2:
3: /**
4: * ShipSync
5: *
6: * @category IllApps
7: * @package IllApps_Shipsync
8: * @copyright Copyright (c) 2014 EcoMATICS, Inc. DBA IllApps (http://www.illapps.com)
9: * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10: */
11:
12: /**
13: * IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Source_Ratediscount
14: */
15: class IllApps_Shipsync_Model_Shipping_Carrier_Fedex_Source_Ratediscount
16: {
17:
18: /**
19: * toOptionArray
20: *
21: * @return array
22: */
23: public function toOptionArray()
24: {
25: $fedex = Mage::getSingleton('usa/shipping_carrier_fedex');
26:
27: $arr = array();
28:
29: foreach ($fedex->getCode('rate_discount') as $k => $v) {
30: $arr[] = array('value' => $k, 'label' => $v);
31: }
32:
33: return $arr;
34: }
35: }
36: