Mage_Sales_Block_Order_Print Class Reference

Inheritance diagram for Mage_Sales_Block_Order_Print:

Mage_Sales_Block_Items_Abstract Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getPaymentInfoHtml ()
 getOrder ()

Protected Member Functions

 _prepareLayout ()
 _prepareItem (Mage_Core_Block_Abstract $renderer)


Detailed Description

Definition at line 34 of file Print.php.


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 57 of file Print.php.

00058     {
00059         $renderer->setPrintStatus(true);
00060 
00061         return parent::_prepareItem($renderer);
00062     }

_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 36 of file Print.php.

00037     {
00038         if ($headBlock = $this->getLayout()->getBlock('head')) {
00039             $headBlock->setTitle($this->__('Print Order # %s', $this->getOrder()->getRealOrderId()));
00040         }
00041         $this->setChild(
00042             'payment_info',
00043             $this->helper('payment')->getInfoBlock($this->getOrder()->getPayment())
00044         );
00045     }

getOrder (  ) 

Definition at line 52 of file Print.php.

00053     {
00054         return Mage::registry('current_order');
00055     }

getPaymentInfoHtml (  ) 

Definition at line 47 of file Print.php.

00048     {
00049         return $this->getChildHtml('payment_info');
00050     }


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