Public Member Functions | |
getOrder () | |
getSource () | |
getShipment () | |
getPaymentHtml () | |
getItemsHtml () | |
getSaveUrl () | |
Protected Member Functions | |
_prepareLayout () |
Definition at line 35 of file Form.php.
_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 67 of file Form.php.
00068 { 00069 // $infoBlock = $this->getLayout()->createBlock('adminhtml/sales_order_view_info') 00070 // ->setOrder($this->getShipment()->getOrder()); 00071 // $this->setChild('order_info', $infoBlock); 00072 00073 $this->setChild( 00074 'items', 00075 $this->getLayout()->createBlock('adminhtml/sales_order_shipment_create_items') 00076 ); 00077 $this->setChild( 00078 'tracking', 00079 $this->getLayout()->createBlock('adminhtml/sales_order_shipment_create_tracking') 00080 ); 00081 // $paymentInfoBlock = $this->getLayout()->createBlock('adminhtml/sales_order_payment') 00082 // ->setPayment($this->getShipment()->getOrder()->getPayment()); 00083 // $this->setChild('payment_info', $paymentInfoBlock); 00084 00085 // return parent::_prepareLayout(); 00086 }
getItemsHtml | ( | ) |
Definition at line 93 of file Form.php.
00094 { 00095 return $this->getChildHtml('order_items'); 00096 }
getOrder | ( | ) |
Retrieve invoice order
Reimplemented from Mage_Adminhtml_Block_Sales_Order_Abstract.
Definition at line 42 of file Form.php.
00043 { 00044 return $this->getShipment()->getOrder(); 00045 }
getPaymentHtml | ( | ) |
Definition at line 88 of file Form.php.
00089 { 00090 return $this->getChildHtml('order_payment'); 00091 }
getSaveUrl | ( | ) |
Definition at line 98 of file Form.php.
00099 { 00100 return $this->getUrl('*/*/save', array('order_id' => $this->getShipment()->getOrderId())); 00101 }
getShipment | ( | ) |
Retrieve shipment model instance
Definition at line 62 of file Form.php.
00063 { 00064 return Mage::registry('current_shipment'); 00065 }
getSource | ( | ) |
Retrieve source
Definition at line 52 of file Form.php.
00053 { 00054 return $this->getShipment(); 00055 }