*/ class Mage_SalesRule_Model_System_Config_Source_Coupon_Format { /** * Options getter * * @return array */ public function toOptionArray() { $formatsList = Mage::helper('salesrule/coupon')->getFormatsList(); $result = array(); foreach ($formatsList as $formatId => $formatTitle) { $result[] = array( 'value' => $formatId, 'label' => $formatTitle ); } return $result; } }