Mage_PaypalUk_Block_Express_Info Class Reference

Inheritance diagram for Mage_PaypalUk_Block_Express_Info:

Mage_Payment_Block_Info Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getEmail ()
 toPdf ()

Protected Member Functions

 _construct ()


Detailed Description

Definition at line 28 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_Payment_Block_Info.

Definition at line 30 of file Info.php.

00031     {
00032         parent::_construct();
00033         $this->setTemplate('paypaluk/express/info.phtml');
00034     }

getEmail (  ) 

Definition at line 36 of file Info.php.

00037     {
00038         $p = $this->getInfo();
00039         if ($p->getAdditionalData()) {
00040             $email = $p->getAdditionalData();
00041         } elseif ($p instanceof Mage_Sales_Model_Quote_Payment) {
00042             $email = $p->getQuote()->getBillingAddress()->getEmail();
00043         } elseif ($p instanceof Mage_Sales_Model_Order_Payment) {
00044             if ($p->getOrder()->getBillingAddress()->getEmail()) {
00045                $email = $p->getOrder()->getBillingAddress()->getEmail();
00046             } else {
00047                $email = $p->getOrder()->getCustomerEmail();
00048             }
00049         } else {
00050             $email = Mage::helper('paypal')->__("N/A");
00051         }
00052         return $email;
00053     }

toPdf (  ) 

Reimplemented from Mage_Payment_Block_Info.

Definition at line 55 of file Info.php.

00056     {
00057         $this->setTemplate('paypaluk/express/pdf/info.phtml');
00058         return $this->toHtml();
00059     }


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

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