Mage_Checkout_Block_Onepage_Payment_Methods Class Reference

Inheritance diagram for Mage_Checkout_Block_Onepage_Payment_Methods:

Mage_Payment_Block_Form_Container Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getQuote ()
 getSelectedMethodCode ()

Protected Member Functions

 _canUseMethod ($method)


Detailed Description

Definition at line 35 of file Methods.php.


Member Function Documentation

_canUseMethod ( method  )  [protected]

Check and prepare payment method model

Returns:
bool

Reimplemented from Mage_Payment_Block_Form_Container.

Definition at line 47 of file Methods.php.

00048     {
00049         if (!$method || !$method->canUseCheckout()) {
00050             return false;
00051         }
00052         return parent::_canUseMethod($method);
00053     }

getQuote (  ) 

Definition at line 37 of file Methods.php.

00038     {
00039         return Mage::getSingleton('checkout/session')->getQuote();
00040     }

getSelectedMethodCode (  ) 

Retrieve code of current payment method

Returns:
mixed

Reimplemented from Mage_Payment_Block_Form_Container.

Definition at line 60 of file Methods.php.

00061     {
00062         if ($method = $this->getQuote()->getPayment()->getMethod()) {
00063             return $method;
00064         }
00065         return false;
00066     }


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

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