Mage_Adminhtml_Block_Sales_Order_Shipment_Create Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Sales_Order_Shipment_Create:

Mage_Adminhtml_Block_Widget_Form_Container Mage_Adminhtml_Block_Widget_Container Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getShipment ()
 getHeaderText ()
 getBackUrl ()


Detailed Description

Definition at line 35 of file Create.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 Mage_Adminhtml_Block_Widget_Form_Container.

Definition at line 37 of file Create.php.

00038     {
00039         $this->_objectId = 'order_id';
00040         $this->_controller = 'sales_order_shipment';
00041         $this->_mode = 'create';
00042 
00043         parent::__construct();
00044 
00045         //$this->_updateButton('save', 'label', Mage::helper('sales')->__('Submit Shipment'));
00046         $this->_removeButton('save');
00047         $this->_removeButton('delete');
00048     }


Member Function Documentation

getBackUrl (  ) 

Get URL for back (reset) button

Returns:
string

Reimplemented from Mage_Adminhtml_Block_Widget_Form_Container.

Definition at line 66 of file Create.php.

00067     {
00068         return $this->getUrl('*/sales_order/view', array('order_id'=>$this->getShipment()->getOrderId()));
00069     }

getHeaderText (  ) 

Get header text

Returns:
string

Reimplemented from Mage_Adminhtml_Block_Widget_Container.

Definition at line 60 of file Create.php.

00061     {
00062         $header = Mage::helper('sales')->__('New Shipment for Order #%s', $this->getShipment()->getOrder()->getRealOrderId());
00063         return $header;
00064     }

getShipment (  ) 

Retrieve shipment model instance

Returns:
Mage_Sales_Model_Order_Shipment

Definition at line 55 of file Create.php.

00056     {
00057         return Mage::registry('current_shipment');
00058     }


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