Public Member Functions | |
getSource () | |
getOrder () | |
getCurrency () | |
Protected Member Functions | |
_beforeToHtml () |
Definition at line 34 of file Totals.php.
_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
Definition at line 80 of file Totals.php.
00081 { 00082 return $this->getData('currency'); 00083 }
getOrder | ( | ) |
Retrieve Order instance
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
Definition at line 60 of file Totals.php.
00061 { 00062 return $this->getData('source'); 00063 }