Mage_Adminhtml_Block_Sales_Order_Invoice_Create_Tracking Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Sales_Order_Invoice_Create_Tracking:

Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 _construct ()
 getShipment ()
 getInvoice ()
 getCarriers ()

Protected Member Functions

 _prepareLayout ()


Detailed Description

Definition at line 34 of file Tracking.php.


Member Function Documentation

_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.

00037     {
00038         $this->setTemplate('sales/order/invoice/create/tracking.phtml');
00039     }

_prepareLayout (  )  [protected]

Prepares layout of block

Returns:
Mage_Adminhtml_Block_Sales_Order_View_Giftmessage

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

Returns:
unknown

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

Returns:
Mage_Sales_Model_Order_Shipment

Definition at line 73 of file Tracking.php.

00074     {
00075         return Mage::registry('current_invoice');
00076     }

getShipment (  ) 

Retrieve shipment model instance

Returns:
Mage_Sales_Model_Order_Shipment

Definition at line 63 of file Tracking.php.

00064     {
00065         return Mage::registry('current_shipment');
00066     }


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