Public Member Functions | |
toOptionArray () |
Definition at line 28 of file Unitofmeasure.php.
toOptionArray | ( | ) |
Definition at line 30 of file Unitofmeasure.php.
00031 { 00032 $unitArr = Mage::getSingleton('usa/shipping_carrier_ups')->getCode('unit_of_measure'); 00033 $returnArr = array(); 00034 foreach ($unitArr as $key => $val){ 00035 $returnArr[] = array('value'=>$key,'label'=>$key); 00036 } 00037 return $returnArr; 00038 }