Mage_Adminhtml_Block_Cms_Page_Grid_Renderer_Action Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Cms_Page_Grid_Renderer_Action:

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 27 of file Action.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 29 of file Action.php.

00030     {
00031         $urlModel = Mage::getModel('core/url')->setStore($row->getData('_first_store_id'));
00032         $href = $urlModel->getUrl('', array('_current'=>false)) . "{$row->getIdentifier()}?___store={$row->getStoreCode()}";
00033         return '<a href="'.$href.'" target="_blank">'.$this->__('Preview').'</a>';
00034     }


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

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