*/
class Mage_Adminhtml_Block_System_Email_Template_Grid_Renderer_Action extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action
{
public function render(Varien_Object $row)
{
$actions = array();
$actions[] = array(
'url' => $this->getUrl('*/*/preview', array('id'=>$row->getId())),
'popup' => true,
'caption' => $this->__('Preview')
);
$this->getColumn()->setActions($actions);
return parent::render($row);
}
protected function _getEscapedValue($value)
{
return addcslashes(htmlspecialchars($value),'\\\'');
}
protected function _actionsToHtml(array $actions)
{
$html = array();
$attributesObject = new Varien_Object();
foreach ($actions as $action) {
$attributesObject->setData($action['@']);
$html[] = 'serialize() . '>' . $action['#'] . '';
}
return implode(' | ', $html);
}
}