Mage_Sales_Block_Order_Details Class Reference

Inheritance diagram for Mage_Sales_Block_Order_Details:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getBackUrl ()
 getInvoices ()
 getPrintUrl ()


Detailed Description

Definition at line 35 of file Details.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 Details.php.

00039     {
00040         parent::__construct();
00041         $this->setTemplate('sales/order/details.phtml');
00042         $this->setOrder(Mage::getModel('sales/order')->load($this->getRequest()->getParam('order_id')));
00043         Mage::registry('action')->getLayout()->getBlock('root')->setHeaderTitle(Mage::helper('sales')->__('Order Details'));
00044     }


Member Function Documentation

getBackUrl (  ) 

Definition at line 46 of file Details.php.

00047     {
00048         return Mage::getUrl('*/*/history');
00049     }

getInvoices (  ) 

Definition at line 51 of file Details.php.

00052     {
00053         $invoices = Mage::getResourceModel('sales/invoice_collection')->setOrderFilter($this->getOrder()->getId())->load();
00054         return $invoices;
00055     }

getPrintUrl (  ) 

Definition at line 57 of file Details.php.

00058     {
00059         return Mage::getUrl('*/*/print');
00060     }


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

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