Public Member Functions | |
getEmail () | |
toPdf () | |
Protected Member Functions | |
_construct () |
Definition at line 28 of file Info.php.
_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 }