
Public Member Functions | |
| render (Varien_Object $row) | |
| renderCss () | |
Protected Member Functions | |
| _getCurrencyCode ($row) | |
| _getRate ($row) | |
Protected Attributes | |
| $_defaultWidth = 100 | |
Static Protected Attributes | |
| static | $_currencies = array() |
Definition at line 35 of file Price.php.
| _getCurrencyCode | ( | $ | row | ) | [protected] |
| _getRate | ( | $ | row | ) | [protected] |
| render | ( | Varien_Object $ | row | ) |
Renders grid column
| Varien_Object | $row |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract.
Definition at line 49 of file Price.php.
00050 { 00051 if ($data = $row->getData($this->getColumn()->getIndex())) { 00052 $currency_code = $this->_getCurrencyCode($row); 00053 00054 if (!$currency_code) { 00055 return $data; 00056 } 00057 00058 $data = floatval($data) * $this->_getRate($row); 00059 $data = sprintf("%f", $data); 00060 $data = Mage::app()->getLocale()->currency($currency_code)->toCurrency($data); 00061 return $data; 00062 } 00063 return $this->getColumn()->getDefault(); 00064 }
| renderCss | ( | ) |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract.
Definition at line 88 of file Price.php.
00089 { 00090 return parent::renderCss() . ' a-right'; 00091 }
$_currencies = array() [static, protected] |
$_defaultWidth = 100 [protected] |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract.
1.5.8