Mage_Adminhtml_Block_Sitemap_Grid_Renderer_Link Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Sitemap_Grid_Renderer_Link:

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 33 of file Link.php.


Member Function Documentation

render ( Varien_Object row  ) 

Prepare link to display in grid

Parameters:
Varien_Object $row
Returns:
string

Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract.

Definition at line 42 of file Link.php.

00043     {
00044         $fileName = preg_replace('/^\//', '', $row->getSitemapPath() . $row->getSitemapFilename());
00045         $url = $this->htmlEscape(Mage::getBaseUrl('web') . $fileName);
00046 
00047         if (file_exists(BP . DS . $fileName)) {
00048             return sprintf('<a href="%1$s">%1$s</a>', $url);
00049         }
00050         return $url;
00051     }


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

Generated on Sat Jul 4 17:23:02 2009 for Magento by  doxygen 1.5.8