Public Member Functions | |
__construct () | |
getShipment () | |
getHeaderText () | |
getBackUrl () |
Definition at line 35 of file Create.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 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 }
getBackUrl | ( | ) |
Get URL for back (reset) button
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
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
Definition at line 55 of file Create.php.
00056 { 00057 return Mage::registry('current_shipment'); 00058 }