Public Member Functions | |
toOptionArray () | |
Protected Member Functions | |
_getPaymentMethods () |
Definition at line 27 of file Allmethods.php.
_getPaymentMethods | ( | ) | [protected] |
Reimplemented in Mage_Adminhtml_Model_System_Config_Source_Payment_Allowedmethods.
Definition at line 29 of file Allmethods.php.
00030 { 00031 return Mage::getSingleton('payment/config')->getAllMethods(); 00032 }
toOptionArray | ( | ) |
Definition at line 34 of file Allmethods.php.
00035 { 00036 $methods = array(array('value'=>'', 'label'=>'')); 00037 foreach ($this->_getPaymentMethods() as $paymentCode=>$paymentModel) { 00038 $paymentTitle = Mage::getStoreConfig('payment/'.$paymentCode.'/title'); 00039 $methods[$paymentCode] = array( 00040 'label' => $paymentTitle, 00041 'value' => $paymentCode, 00042 ); 00043 } 00044 00045 return $methods; 00046 }