Mage_Adminhtml_Block_Newsletter_Template_Grid_Renderer_Action Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Newsletter_Template_Grid_Renderer_Action:

Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Text 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 Action.php.


Member Function Documentation

render ( Varien_Object row  ) 

Renders column

Parameters:
Varien_Object $row
Returns:
string

Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action.

Definition at line 37 of file Action.php.

00038     {
00039         $actions = array();
00040 
00041         if($row->isValidForSend()) {
00042             $actions[] = array(
00043                 'url' => $this->getUrl('*/*/toqueue', array('id'=>$row->getId())),
00044                 'caption'   =>  Mage::helper('newsletter')->__('Queue Newsletter')
00045             );
00046         }
00047 
00048         $actions[] = array(
00049             'url'       =>  $this->getUrl('*/*/preview', array('id'=>$row->getId())),
00050             'popup'     =>  true,
00051             'caption'   =>  Mage::helper('newsletter')->__('Preview')
00052         );
00053 
00054         $this->getColumn()->setActions($actions);
00055 
00056         return parent::render($row);
00057     }


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