Mage_Adminhtml_Block_Sales_Order_Payment Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Sales_Order_Payment:

Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 setPayment ($payment)

Protected Member Functions

 _beforeToHtml ()
 _toHtml ()


Detailed Description

Definition at line 34 of file Payment.php.


Member Function Documentation

_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

Returns:
string

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     }


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

Generated on Sat Jul 4 17:23:01 2009 for Magento by  doxygen 1.5.8