Mage_Payment_Block_Form Class Reference

Inheritance diagram for Mage_Payment_Block_Form:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object Mage_AmazonPayments_Block_Asp_Form Mage_AmazonPayments_Block_Cba_Form Mage_AmazonPayments_Block_Form Mage_GoogleCheckout_Block_Form Mage_Payment_Block_Form_Cc Mage_Payment_Block_Form_Checkmo Mage_Payment_Block_Form_Purchaseorder Mage_Paypal_Block_Express_Form Mage_Paypal_Block_Standard_Form Mage_PaypalUk_Block_Express_Form

List of all members.

Public Member Functions

 getMethod ()
 getMethodCode ()
 getInfoData ($field)


Detailed Description

Payment method form base block

Definition at line 30 of file Form.php.


Member Function Documentation

getInfoData ( field  ) 

Retrieve field value data from payment info object

Parameters:
string $field
Returns:
mixed

Definition at line 63 of file Form.php.

00064     {
00065         return $this->htmlEscape($this->getMethod()->getInfoInstance()->getData($field));
00066     }

getMethod (  ) 

Retrieve payment method model

Returns:
Mage_Payment_Model_Method_Abstract

Definition at line 37 of file Form.php.

00038     {
00039         $method = $this->getData('method');
00040 
00041         if (!($method instanceof Mage_Payment_Model_Method_Abstract)) {
00042             Mage::throwException($this->__('Can not retrieve payment method model object.'));
00043         }
00044         return $method;
00045     }

getMethodCode (  ) 

Retrieve payment method code

Returns:
string

Definition at line 52 of file Form.php.

00053     {
00054         return $this->getMethod()->getCode();
00055     }


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

Generated on Sat Jul 4 17:24:31 2009 for Magento by  doxygen 1.5.8