Public Member Functions | |
getPaymentInfo () | |
setInfoTemplate ($method='', $template='') | |
Protected Member Functions | |
_prepareLayout () | |
_getInfoBlockName () |
Definition at line 34 of file Container.php.
_getInfoBlockName | ( | ) | [protected] |
Retrieve info block name
Definition at line 57 of file Container.php.
00058 { 00059 if ($info = $this->getPaymentInfo()) { 00060 return 'payment.info.'.$info->getMethodInstance()->getCode(); 00061 } 00062 return false; 00063 }
_prepareLayout | ( | ) | [protected] |
Add payment info block to layout
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 41 of file Container.php.
00042 { 00043 if ($info = $this->getPaymentInfo()) { 00044 $this->setChild( 00045 $this->_getInfoBlockName(), 00046 Mage::helper('payment')->getInfoBlock($info) 00047 ); 00048 } 00049 return parent::_prepareLayout(); 00050 }
getPaymentInfo | ( | ) |
Retrieve payment info model
Reimplemented in Mage_Checkout_Block_Multishipping_Payment_Info, and Mage_Checkout_Block_Onepage_Payment_Info.
Definition at line 70 of file Container.php.
setInfoTemplate | ( | $ | method = '' , |
|
$ | template = '' | |||
) |
Declare info block template
string | $method | |
string | $template |
Definition at line 82 of file Container.php.
00083 { 00084 if ($info = $this->getPaymentInfo()) { 00085 if ($info->getMethodInstance()->getCode() == $method) { 00086 $this->getChild($this->_getInfoBlockName())->setTemplate($template); 00087 } 00088 } 00089 return $this; 00090 }