Public Member Functions | |
render (Varien_Object $row) |
Definition at line 35 of file Actions.php.
render | ( | Varien_Object $ | row | ) |
Renders grid column
Varien_Object | $row |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract.
Definition at line 44 of file Actions.php.
00045 { 00046 if (!$row->getIsRead()) { 00047 return sprintf('<a target="_blank" href="%s">%s</a> | <a href="%s">%s</a> | <a href="%s" onClick="deleteConfirm(\'%s\',this.href); return false;">%s</a>', 00048 $row->getUrl(), 00049 Mage::helper('adminnotification')->__('Read Details'), 00050 $this->getUrl('*/*/markAsRead/', array('_current'=>true, 'id' => $row->getId())), 00051 Mage::helper('adminnotification')->__('Mark as Read'), 00052 $this->getUrl('*/*/remove/', array('_current'=>true, 'id' => $row->getId())), 00053 Mage::helper('adminnotification')->__('Are you sure?'), 00054 Mage::helper('adminnotification')->__('Remove') 00055 ); 00056 } 00057 else { 00058 return sprintf('<a target="_blank" href="%s">%s</a> | <a href="%s" onClick="deleteConfirm(\'%s\',this.href); return false;">%s</a>', 00059 $row->getUrl(), 00060 Mage::helper('adminnotification')->__('Read Details'), 00061 $this->getUrl('*/*/remove/', array('_current'=>true, 'id' => $row->getId())), 00062 Mage::helper('adminnotification')->__('Are you sure?'), 00063 Mage::helper('adminnotification')->__('Remove') 00064 ); 00065 } 00066 }