Mage_Adminhtml_Model_System_Config_Source_Payment_Allmethods Class Reference

Inheritance diagram for Mage_Adminhtml_Model_System_Config_Source_Payment_Allmethods:

Mage_Adminhtml_Model_System_Config_Source_Payment_Allowedmethods

List of all members.

Public Member Functions

 toOptionArray ()

Protected Member Functions

 _getPaymentMethods ()


Detailed Description

Definition at line 27 of file Allmethods.php.


Member Function Documentation

_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     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:14 2009 for Magento by  doxygen 1.5.8