Public Member Functions | |
__construct () | |
getBackUrl () | |
getPrintUrl () | |
getPaymentInfoHtml () | |
getOrder () | |
getCreditmemo () | |
Protected Member Functions | |
_prepareLayout () | |
_prepareItem (Mage_Core_Block_Abstract $renderer) |
Definition at line 35 of file Creditmemo.php.
__construct | ( | ) |
Constructor
By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes
Reimplemented from Varien_Object.
Definition at line 38 of file Creditmemo.php.
00039 { 00040 parent::__construct(); 00041 }
_prepareItem | ( | Mage_Core_Block_Abstract $ | renderer | ) | [protected] |
Prepare item before output
Mage_Core_Block_Abstract | $renderer |
Reimplemented from Mage_Sales_Block_Items_Abstract.
Definition at line 79 of file Creditmemo.php.
00080 { 00081 $renderer->setPrintStatus(true); 00082 00083 return parent::_prepareItem($renderer); 00084 }
_prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 43 of file Creditmemo.php.
00044 { 00045 if ($headBlock = $this->getLayout()->getBlock('head')) { 00046 $headBlock->setTitle($this->__('Order # %s', $this->getOrder()->getRealOrderId())); 00047 } 00048 $this->setChild( 00049 'payment_info', 00050 $this->helper('payment')->getInfoBlock($this->getOrder()->getPayment()) 00051 ); 00052 }
getBackUrl | ( | ) |
Definition at line 54 of file Creditmemo.php.
00055 { 00056 return Mage::getUrl('*/*/history'); 00057 }
getCreditmemo | ( | ) |
Definition at line 74 of file Creditmemo.php.
00075 { 00076 return Mage::registry('current_creditmemo'); 00077 }
getOrder | ( | ) |
Definition at line 69 of file Creditmemo.php.
00070 { 00071 return Mage::registry('current_order'); 00072 }
getPaymentInfoHtml | ( | ) |
Definition at line 64 of file Creditmemo.php.
00065 { 00066 return $this->getChildHtml('payment_info'); 00067 }
getPrintUrl | ( | ) |
Definition at line 59 of file Creditmemo.php.
00060 { 00061 return Mage::getUrl('*/*/print'); 00062 }