Mage_Sales_Block_Order_Invoice Class Reference

Inheritance diagram for Mage_Sales_Block_Order_Invoice:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getPaymentInfoHtml ()
 getOrder ()
 getBackUrl ()
 getViewUrl ($order)
 getShipmentUrl ($order)
 getCreditmemoUrl ($order)
 getPrintInvoiceUrl ($invoice)
 getPrintAllInvoicesUrl ($order)

Protected Member Functions

 _construct ()
 _prepareLayout ()


Detailed Description

Definition at line 34 of file Invoice.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 Invoice.php.

00037     {
00038         parent::_construct();
00039         $this->setTemplate('sales/order/invoice.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 Invoice.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 Invoice.php.

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

getCreditmemoUrl ( order  ) 

Definition at line 83 of file Invoice.php.

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

getOrder (  ) 

Retrieve current order model instance

Returns:
Mage_Sales_Model_Order

Definition at line 63 of file Invoice.php.

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

getPaymentInfoHtml (  ) 

Definition at line 53 of file Invoice.php.

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

getPrintAllInvoicesUrl ( order  ) 

Definition at line 92 of file Invoice.php.

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

getPrintInvoiceUrl ( invoice  ) 

Definition at line 88 of file Invoice.php.

00088                                                 {
00089         return Mage::getUrl('*/*/printInvoice', array('invoice_id' => $invoice->getId()));
00090     }

getShipmentUrl ( order  ) 

Definition at line 78 of file Invoice.php.

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

getViewUrl ( order  ) 

Definition at line 73 of file Invoice.php.

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


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