Public Member Functions | |
render (Varien_Object $row) |
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 37 of file Type.php.
00038 { 00039 if (is_null($row->getCustomerId())) { 00040 return Mage::helper('review')->__('Guest'); 00041 } elseif ($row->getCustomerId() == 0) { 00042 return Mage::helper('review')->__('Administrator'); 00043 } elseif ($row->getCustomerId() > 0) { 00044 return Mage::helper('review')->__('Customer'); 00045 } 00046 // return ($row->getCustomerId() ? Mage::helper('review')->__('Customer') : Mage::helper('review')->__('Guest')); 00047 }