Public Member Functions | |
render (Varien_Object $row) | |
Static Protected Attributes | |
static | $_types |
Definition at line 35 of file Type.php.
render | ( | Varien_Object $ | row | ) |
Renders grid column
Varien_Object | $row |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract.
Definition at line 41 of file Type.php.
00042 { 00043 00044 $str = Mage::helper('adminhtml')->__('Unknown'); 00045 00046 if(isset(self::$_types[$row->getTemplateType()])) { 00047 $str = self::$_types[$row->getTemplateType()]; 00048 } 00049 00050 return Mage::helper('adminhtml')->__($str); 00051 }
$_types [static, protected] |
Initial value:
array( Mage_Newsletter_Model_Template::TYPE_HTML => 'HTML', Mage_Newsletter_Model_Template::TYPE_TEXT => 'Text', )