Mage_Sales_Block_Order_Shipment Class Reference

Inheritance diagram for Mage_Sales_Block_Order_Shipment:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getPaymentInfoHtml ()
 getOrder ()
 getBackUrl ()
 getInvoiceUrl ($order)
 getViewUrl ($order)
 getCreditmemoUrl ($order)
 getPrintShipmentUrl ($shipment)
 getPrintAllShipmentsUrl ($order)

Protected Member Functions

 _construct ()
 _prepareLayout ()


Detailed Description

Definition at line 34 of file Shipment.php.


Member Function Documentation

_construct (  )  [protected]

Internal constructor, that is called from real constructor

Please override this one instead of overriding real __construct constructor

Please override this one instead of overriding real __construct constructor

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 36 of file Shipment.php.

00037     {
00038         parent::_construct();
00039         $this->setTemplate('sales/order/shipment.phtml');
00040     }

_prepareLayout (  )  [protected]

Preparing global layout

You can redefine this method in child classes for changin layout

Returns:
Mage_Core_Block_Abstract

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 42 of file Shipment.php.

00043     {
00044         if ($headBlock = $this->getLayout()->getBlock('head')) {
00045             $headBlock->setTitle($this->__('Order # %s', $this->getOrder()->getRealOrderId()));
00046         }
00047         $this->setChild(
00048             'payment_info',
00049             $this->helper('payment')->getInfoBlock($this->getOrder()->getPayment())
00050         );
00051     }

getBackUrl (  ) 

Definition at line 68 of file Shipment.php.

00069     {
00070         return Mage::getUrl('*/*/history');
00071     }

getCreditmemoUrl ( order  ) 

Definition at line 83 of file Shipment.php.

00084     {
00085         return Mage::getUrl('*/*/creditmemo', array('order_id' => $order->getId()));
00086     }

getInvoiceUrl ( order  ) 

Definition at line 73 of file Shipment.php.

00074     {
00075         return Mage::getUrl('*/*/invoice', array('order_id' => $order->getId()));
00076     }

getOrder (  ) 

Retrieve current order model instance

Returns:
Mage_Sales_Model_Order

Definition at line 63 of file Shipment.php.

00064     {
00065         return Mage::registry('current_order');
00066     }

getPaymentInfoHtml (  ) 

Definition at line 53 of file Shipment.php.

00054     {
00055         return $this->getChildHtml('payment_info');
00056     }

getPrintAllShipmentsUrl ( order  ) 

Definition at line 93 of file Shipment.php.

00093                                                    {
00094         return Mage::getUrl('*/*/printShipment', array('order_id' => $order->getId()));
00095     }

getPrintShipmentUrl ( shipment  ) 

Definition at line 89 of file Shipment.php.

00089                                                   {
00090         return Mage::getUrl('*/*/printShipment', array('shipment_id' => $shipment->getId()));
00091     }

getViewUrl ( order  ) 

Definition at line 78 of file Shipment.php.

00079     {
00080         return Mage::getUrl('*/*/view', array('order_id' => $order->getId()));
00081     }


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

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