Public Member Functions | |
__construct () | |
getBackUrl () | |
getInvoices () | |
getPrintUrl () |
Definition at line 35 of file Details.php.
__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 }
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 | ( | ) |