Public Member Functions | |
getShipment () | |
getCarriers () | |
Protected Member Functions | |
_prepareLayout () |
Definition at line 34 of file Tracking.php.
_prepareLayout | ( | ) | [protected] |
Prepares layout of block
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 41 of file Tracking.php.
00042 { 00043 $this->setChild('add_button', 00044 $this->getLayout()->createBlock('adminhtml/widget_button') 00045 ->setData(array( 00046 'label' => Mage::helper('sales')->__('Add Tracking Number'), 00047 'class' => '', 00048 'onclick' => 'trackingControl.add()' 00049 )) 00050 00051 ); 00052 00053 }
getCarriers | ( | ) |
Retrieve
Definition at line 70 of file Tracking.php.
00071 { 00072 $carriers = array(); 00073 $carrierInstances = Mage::getSingleton('shipping/config')->getAllCarriers( 00074 $this->getShipment()->getStoreId() 00075 ); 00076 $carriers['custom'] = Mage::helper('sales')->__('Custom Value'); 00077 foreach ($carrierInstances as $code => $carrier) { 00078 if ($carrier->isTrackingAvailable()) { 00079 $carriers[$code] = $carrier->getConfigData('title'); 00080 } 00081 } 00082 return $carriers; 00083 }
getShipment | ( | ) |
Retrieve shipment model instance
Definition at line 60 of file Tracking.php.
00061 { 00062 return Mage::registry('current_shipment'); 00063 }