Public Member Functions | |
getOrder () | |
__construct () | |
Protected Member Functions | |
_beforeToHtml () |
Definition at line 34 of file Tabs.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 55 of file Tabs.php.
00056 { 00057 parent::__construct(); 00058 $this->setId('sales_order_view_tabs'); 00059 $this->setDestElementId('sales_order_view'); 00060 $this->setTitle(Mage::helper('sales')->__('Order View')); 00061 }
_beforeToHtml | ( | ) | [protected] |
Before rendering html, but after trying to load cache
Reimplemented from Mage_Adminhtml_Block_Widget_Tabs.
Definition at line 63 of file Tabs.php.
00064 { 00065 // $this->addTab('order_info', array( 00066 // 'label' => Mage::helper('sales')->__('Information'), 00067 // 'title' => Mage::helper('sales')->__('Order Information'), 00068 // 'content' => $this->getLayout()->createBlock('adminhtml/sales_order_view_tab_info')->toHtml(), 00069 // 'active' => true 00070 // )); 00071 // 00072 // $this->addTab('order_invoices', array( 00073 // 'label' => Mage::helper('catalogrule')->__('Invoices'), 00074 // 'title' => Mage::helper('catalogrule')->__('Order Invoices'), 00075 // 'content' => $this->getLayout()->createBlock('adminhtml/sales_order_view_tab_invoices')->toHtml(), 00076 // )); 00077 // 00078 // $this->addTab('order_creditmemos', array( 00079 // 'label' => Mage::helper('catalogrule')->__('Credit Memos'), 00080 // 'title' => Mage::helper('catalogrule')->__('Order Credit Memos'), 00081 // 'content' => $this->getLayout()->createBlock('adminhtml/sales_order_view_tab_creditmemos')->toHtml(), 00082 // )); 00083 // 00084 // if (!$this->getOrder()->getIsVirtual()) { 00085 // $this->addTab('order_shipments', array( 00086 // 'label' => Mage::helper('catalogrule')->__('Shipments'), 00087 // 'title' => Mage::helper('catalogrule')->__('Order Shipments'), 00088 // 'content' => $this->getLayout()->createBlock('adminhtml/sales_order_view_tab_shipments')->toHtml(), 00089 // )); 00090 // } 00091 // 00092 // /*$this->addTab('order_giftmessages', array( 00093 // 'label' => Mage::helper('catalogrule')->__('Gift Messages'), 00094 // 'title' => Mage::helper('catalogrule')->__('Order Gift Messages'), 00095 // 'content' => 'Gift Messages', 00096 // ));*/ 00097 // 00098 // $this->addTab('order_history', array( 00099 // 'label' => Mage::helper('catalogrule')->__('Comments History'), 00100 // 'title' => Mage::helper('catalogrule')->__('Order History'), 00101 // 'content' => $this->getLayout()->createBlock('adminhtml/sales_order_view_tab_history')->toHtml(), 00102 // )); 00103 return parent::_beforeToHtml(); 00104 }
getOrder | ( | ) |
Retrieve available order
Definition at line 41 of file Tabs.php.
00042 { 00043 if ($this->hasOrder()) { 00044 return $this->getData('order'); 00045 } 00046 if (Mage::registry('current_order')) { 00047 return Mage::registry('current_order'); 00048 } 00049 if (Mage::registry('order')) { 00050 return Mage::registry('order'); 00051 } 00052 Mage::throwException(Mage::helper('sales')->__('Can\'t get order instance')); 00053 }