Mage_Adminhtml_Block_Sales_Order_Totals Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Sales_Order_Totals:

Mage_Adminhtml_Block_Sales_Order_Abstract Mage_Adminhtml_Block_Widget Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object Mage_Adminhtml_Block_Sales_Order_Totals_Item Mage_Adminhtml_Block_Sales_Order_Totals_Tax

List of all members.

Public Member Functions

 getSource ()
 getOrder ()
 getCurrency ()

Protected Member Functions

 _beforeToHtml ()


Detailed Description

Definition at line 34 of file Totals.php.


Member Function Documentation

_beforeToHtml (  )  [protected]

Retrieve required options from parent

Reimplemented from Mage_Core_Block_Abstract.

Reimplemented in Mage_Adminhtml_Block_Sales_Order_Totals_Item, and Mage_Adminhtml_Block_Sales_Order_Totals_Tax.

Definition at line 39 of file Totals.php.

00040     {
00041         if (!$this->getParentBlock()) {
00042             Mage::throwException(Mage::helper('adminhtml')->__('Invalid parrent block for this block'));
00043         }
00044         $this->setOrder($this->getParentBlock()->getOrder());
00045         $this->setSource($this->getParentBlock()->getSource());
00046         $this->setCurrency($this->getParentBlock()->getOrder()->getOrderCurrency());
00047 
00048         foreach ($this->getParentBlock()->getOrderTotalData() as $k => $v) {
00049             $this->setDataUsingMethod($k, $v);
00050         }
00051 
00052         parent::_beforeToHtml();
00053     }

getCurrency (  ) 

Retrieve currency instance

Returns:
Mage_Directory_Model_Currency

Definition at line 80 of file Totals.php.

00081     {
00082         return $this->getData('currency');
00083     }

getOrder (  ) 

Retrieve Order instance

Returns:
Mage_Sales_Model_Order

Reimplemented from Mage_Adminhtml_Block_Sales_Order_Abstract.

Definition at line 70 of file Totals.php.

00071     {
00072         return $this->getData('order');
00073     }

getSource (  ) 

Retrieve data source instance

Returns:
Mage_Sales_Model_Order

Definition at line 60 of file Totals.php.

00061     {
00062         return $this->getData('source');
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