Public Member Functions | |
__construct () | |
getBackUrl () | |
getPrintUrl () | |
getPaymentInfoHtml () | |
getOrder () | |
getShipment () | |
Protected Member Functions | |
_prepareLayout () | |
_prepareItem (Mage_Core_Block_Abstract $renderer) |
Definition at line 35 of file Shipment.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 Shipment.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 Shipment.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 Shipment.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 Shipment.php.
00055 { 00056 return Mage::getUrl('*/*/history'); 00057 }
getOrder | ( | ) |
Definition at line 69 of file Shipment.php.
00070 { 00071 return Mage::registry('current_order'); 00072 }
getPaymentInfoHtml | ( | ) |
Definition at line 64 of file Shipment.php.
00065 { 00066 return $this->getChildHtml('payment_info'); 00067 }
getPrintUrl | ( | ) |
getShipment | ( | ) |
Definition at line 74 of file Shipment.php.
00075 { 00076 return Mage::registry('current_shipment'); 00077 }