Mage_Payment_Block_Info Class Reference

Inheritance diagram for Mage_Payment_Block_Info:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object Mage_Payment_Block_Info_Cc Mage_Payment_Block_Info_Checkmo Mage_Payment_Block_Info_Purchaseorder Mage_Paypal_Block_Express_Info Mage_PaypalUk_Block_Express_Info Mage_Payment_Block_Info_Ccsave Mage_PaypalUk_Block_Direct_Info

List of all members.

Public Member Functions

 getInfo ()
 getMethod ()
 toPdf ()

Protected Member Functions

 _construct ()


Detailed Description

Base payment iformation block

Definition at line 31 of file Info.php.


Member Function Documentation

_construct (  )  [protected]

Internal constructor, that is called from real constructor

Please override this one instead of overriding real __construct constructor

Please override this one instead of overriding real __construct constructor

Reimplemented from Mage_Core_Block_Abstract.

Reimplemented in Mage_Payment_Block_Info_Cc, Mage_Payment_Block_Info_Ccsave, Mage_Payment_Block_Info_Checkmo, Mage_Payment_Block_Info_Purchaseorder, Mage_Paypal_Block_Express_Info, Mage_PaypalUk_Block_Direct_Info, and Mage_PaypalUk_Block_Express_Info.

Definition at line 33 of file Info.php.

00034     {
00035         parent::_construct();
00036         $this->setTemplate('payment/info/default.phtml');
00037     }

getInfo (  ) 

Retrieve info model

Returns:
Mage_Payment_Model_Info

Definition at line 44 of file Info.php.

00045     {
00046         $info = $this->getData('info');
00047         if (!($info instanceof Mage_Payment_Model_Info)) {
00048             Mage::throwException($this->__('Can not retrieve payment info model object.'));
00049         }
00050         return $info;
00051     }

getMethod (  ) 

Retrieve payment method model

Returns:
Mage_Payment_Model_Method_Abstract

Definition at line 58 of file Info.php.

00059     {
00060         return $this->getInfo()->getMethodInstance();
00061     }

toPdf (  ) 

Reimplemented in Mage_Payment_Block_Info_Cc, Mage_Payment_Block_Info_Ccsave, Mage_Payment_Block_Info_Checkmo, Mage_Payment_Block_Info_Purchaseorder, Mage_Paypal_Block_Express_Info, Mage_PaypalUk_Block_Direct_Info, and Mage_PaypalUk_Block_Express_Info.

Definition at line 63 of file Info.php.

00064     {
00065         $this->setTemplate('payment/info/pdf/default.phtml');
00066         return $this->toHtml();
00067     }


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