
Public Member Functions | |
| getPaymentInfoHtml () | |
| getOrder () | |
| getBackUrl () | |
| getViewUrl ($order) | |
| getShipmentUrl ($order) | |
| getCreditmemoUrl ($order) | |
| getPrintInvoiceUrl ($invoice) | |
| getPrintAllInvoicesUrl ($order) | |
Protected Member Functions | |
| _construct () | |
| _prepareLayout () | |
Definition at line 34 of file Invoice.php.
| _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
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
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 }
1.5.8