Mage_Adminhtml_Block_Notification_Grid_Renderer_Actions Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Notification_Grid_Renderer_Actions:

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 Actions.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 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     }


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

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