Mage_Adminhtml_Block_Review_Grid_Renderer_Type Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Review_Grid_Renderer_Type:

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

List of all members.

Public Member Functions

 render (Varien_Object $row)


Detailed Description

Definition at line 35 of file Type.php.


Member Function Documentation

render ( Varien_Object row  ) 

Renders grid column

Parameters:
Varien_Object $row
Returns:
string

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     }


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

Generated on Sat Jul 4 17:22:57 2009 for Magento by  doxygen 1.5.8