Mage_Sales_Block_Order_Print_Shipment Class Reference

Inheritance diagram for Mage_Sales_Block_Order_Print_Shipment:

Mage_Sales_Block_Items_Abstract Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getBackUrl ()
 getPrintUrl ()
 getPaymentInfoHtml ()
 getOrder ()
 getShipment ()

Protected Member Functions

 _prepareLayout ()
 _prepareItem (Mage_Core_Block_Abstract $renderer)


Detailed Description

Definition at line 35 of file Shipment.php.


Constructor & Destructor Documentation

__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     }


Member Function Documentation

_prepareItem ( Mage_Core_Block_Abstract renderer  )  [protected]

Prepare item before output

Parameters:
Mage_Core_Block_Abstract $renderer
Returns:
Mage_Sales_Block_Items_Abstract

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

Returns:
Mage_Core_Block_Abstract

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 (  ) 

Definition at line 59 of file Shipment.php.

00060     {
00061         return Mage::getUrl('*/*/print');
00062     }

getShipment (  ) 

Definition at line 74 of file Shipment.php.

00075     {
00076         return Mage::registry('current_shipment');
00077     }


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