Mage_Payment_Block_Info_Container Class Reference

Inheritance diagram for Mage_Payment_Block_Info_Container:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object Mage_Checkout_Block_Multishipping_Payment_Info Mage_Checkout_Block_Onepage_Payment_Info

List of all members.

Public Member Functions

 getPaymentInfo ()
 setInfoTemplate ($method='', $template='')

Protected Member Functions

 _prepareLayout ()
 _getInfoBlockName ()


Detailed Description

Definition at line 34 of file Container.php.


Member Function Documentation

_getInfoBlockName (  )  [protected]

Retrieve info block name

Returns:
unknown

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

Returns:
Mage_Payment_Block_Info_Container

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

Returns:
Mage_Payment_Model_Info

Reimplemented in Mage_Checkout_Block_Multishipping_Payment_Info, and Mage_Checkout_Block_Onepage_Payment_Info.

Definition at line 70 of file Container.php.

00071     {
00072         return false;
00073     }

setInfoTemplate ( method = '',
template = '' 
)

Declare info block template

Parameters:
string $method
string $template
Returns:
Mage_Payment_Block_Info_Container

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     }


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

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