Public Member Functions | |
render (Varien_Object $row) |
Definition at line 35 of file Currency.php.
render | ( | Varien_Object $ | row | ) |
Renders grid column
Varien_Object | $row |
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 }