Public Member Functions | |
_construct () | |
getShipment () | |
getInvoice () | |
getCarriers () | |
Protected Member Functions | |
_prepareLayout () |
Definition at line 34 of file Tracking.php.
_construct | ( | ) |
Internal constructor, that is called from real constructor
Please override this one instead of overriding real __construct constructor
Please override this one instead of overriding real __construct constructor
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 36 of file Tracking.php.
_prepareLayout | ( | ) | [protected] |
Prepares layout of block
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 46 of file Tracking.php.
00047 { 00048 $this->setChild('add_button', 00049 $this->getLayout()->createBlock('adminhtml/widget_button') 00050 ->setData(array( 00051 'label' => Mage::helper('sales')->__('Add Tracking Number'), 00052 'class' => '', 00053 'onclick' => 'trackingControl.add()' 00054 )) 00055 ); 00056 }
getCarriers | ( | ) |
Retrieve
Definition at line 83 of file Tracking.php.
00084 { 00085 00086 $carriers = array(); 00087 $carrierInstances = Mage::getSingleton('shipping/config')->getAllCarriers( 00088 $this->getInvoice()->getStoreId() 00089 ); 00090 $carriers['custom'] = Mage::helper('sales')->__('Custom Value'); 00091 foreach ($carrierInstances as $code => $carrier) { 00092 if ($carrier->isTrackingAvailable()) { 00093 $carriers[$code] = $carrier->getConfigData('title'); 00094 } 00095 } 00096 return $carriers; 00097 }
getInvoice | ( | ) |
Retrieve shipment model instance
Definition at line 73 of file Tracking.php.
00074 { 00075 return Mage::registry('current_invoice'); 00076 }
getShipment | ( | ) |
Retrieve shipment model instance
Definition at line 63 of file Tracking.php.
00064 { 00065 return Mage::registry('current_shipment'); 00066 }