Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Country Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Country:

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 Mage_Adminhtml_Block_Tax_Rate_Grid_Renderer_Country

List of all members.

Public Member Functions

 render (Varien_Object $row)


Detailed Description

Country column renderer

Author:
Magento Core Team <core@magentocommerce.com>

Definition at line 32 of file Country.php.


Member Function Documentation

render ( Varien_Object row  ) 

Render country grid column

Parameters:
Varien_Object $row
Returns:
string

Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract.

Definition at line 40 of file Country.php.

00041     {
00042         if ($data = $row->getData($this->getColumn()->getIndex())) {
00043             $name = Mage::app()->getLocale()->getCountryTranslation($data);
00044             if (empty($name)) {
00045                 $name = $data;
00046             }
00047             return $name;
00048         }
00049         return null;
00050     }


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

Generated on Sat Jul 4 17:23:09 2009 for Magento by  doxygen 1.5.8