Public Member Functions | |
setPayment ($payment) | |
Protected Member Functions | |
_beforeToHtml () | |
_toHtml () |
Definition at line 34 of file Payment.php.
_beforeToHtml | ( | ) | [protected] |
Retrieve required options from parent
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 39 of file Payment.php.
00040 { 00041 if (!$this->getParentBlock()) { 00042 Mage::throwException(Mage::helper('adminhtml')->__('Invalid parrent block for this block')); 00043 } 00044 $this->setPayment($this->getParentBlock()->getOrder()->getPayment()); 00045 parent::_beforeToHtml(); 00046 }
_toHtml | ( | ) | [protected] |
Render block HTML
Reimplemented from Mage_Core_Block_Template.
Definition at line 59 of file Payment.php.
00060 { 00061 return $this->getChildHtml('info'); 00062 }
setPayment | ( | $ | payment | ) |
Definition at line 48 of file Payment.php.
00049 { 00050 $paymentInfoBlock = Mage::helper('payment')->getInfoBlock($payment); 00051 if ($payment->getMethod() == 'ccsave') { 00052 $paymentInfoBlock->setTemplate('payment/info/ccsave.phtml'); 00053 } 00054 $this->setChild('info', $paymentInfoBlock); 00055 $this->setData('payment', $payment); 00056 return $this; 00057 }