Mage_Adminhtml_Block_Sales_Order_Shipment_Create_Form Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Sales_Order_Shipment_Create_Form:

Mage_Adminhtml_Block_Sales_Order_Abstract Mage_Adminhtml_Block_Widget Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getOrder ()
 getSource ()
 getShipment ()
 getPaymentHtml ()
 getItemsHtml ()
 getSaveUrl ()

Protected Member Functions

 _prepareLayout ()


Detailed Description

Definition at line 35 of file Form.php.


Member Function Documentation

_prepareLayout (  )  [protected]

Preparing global layout

You can redefine this method in child classes for changin layout

Returns:
Mage_Core_Block_Abstract

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

Returns:
Mage_Sales_Model_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

Returns:
Mage_Sales_Model_Order_Shipment

Definition at line 62 of file Form.php.

00063     {
00064         return Mage::registry('current_shipment');
00065     }

getSource (  ) 

Retrieve source

Returns:
Mage_Sales_Model_Order_Invoice

Definition at line 52 of file Form.php.

00053     {
00054         return $this->getShipment();
00055     }


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

Generated on Sat Jul 4 17:23:01 2009 for Magento by  doxygen 1.5.8