Mage_Adminhtml_Block_Report_Grid_Column_Renderer_Currency Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Report_Grid_Column_Renderer_Currency:

Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Currency Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract Mage_Adminhtml_Block_Abstract Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Interface Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 render (Varien_Object $row)


Detailed Description

Definition at line 35 of file Currency.php.


Member Function Documentation

render ( Varien_Object row  ) 

Renders grid column

Parameters:
Varien_Object $row
Returns:
string

Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Currency.

Definition at line 43 of file Currency.php.

00044     {
00045         $data = $row->getData($this->getColumn()->getIndex());
00046         $currency_code = $this->_getCurrencyCode($row);
00047 
00048         if (!$currency_code) {
00049             return $data;
00050         }
00051 
00052         $data = floatval($data) * $this->_getRate($row);
00053         $data = sprintf("%f", $data);
00054         $data = Mage::app()->getLocale()->currency($currency_code)->toCurrency($data);
00055         return $data;
00056     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:22:55 2009 for Magento by  doxygen 1.5.8