Mage_Adminhtml_Block_Sales_Order_Shipment_Create_Tracking Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Sales_Order_Shipment_Create_Tracking:

Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getShipment ()
 getCarriers ()

Protected Member Functions

 _prepareLayout ()


Detailed Description

Definition at line 34 of file Tracking.php.


Member Function Documentation

_prepareLayout (  )  [protected]

Prepares layout of block

Returns:
Mage_Adminhtml_Block_Sales_Order_View_Giftmessage

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

Returns:
unknown

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

Returns:
Mage_Sales_Model_Order_Shipment

Definition at line 60 of file Tracking.php.

00061     {
00062         return Mage::registry('current_shipment');
00063     }


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