Mage_Catalog_Block_Seo_Sitemap_Product Class Reference

Inheritance diagram for Mage_Catalog_Block_Seo_Sitemap_Product:

Mage_Catalog_Block_Seo_Sitemap_Abstract Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getItemUrl ($product)

Protected Member Functions

 _prepareLayout ()


Detailed Description

Definition at line 34 of file Product.php.


Member Function Documentation

_prepareLayout (  )  [protected]

Initialize products collection

Returns:
Mage_Catalog_Block_Seo_Sitemap_Category

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 42 of file Product.php.

00043     {
00044         $collection = Mage::getModel('catalog/product')->getCollection();
00045         /* @var $collection Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection */
00046 
00047         $collection->addAttributeToSelect('name');
00048         $collection->addAttributeToSelect('url_key');
00049         $collection->addStoreFilter();
00050 
00051         Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection);
00052         Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($collection);
00053 
00054         $this->setCollection($collection);
00055 
00056         return $this;
00057     }

getItemUrl ( product  ) 

Get item URL

Parameters:
Mage_Catalog_Model_Product $category
Returns:
string

Reimplemented from Mage_Catalog_Block_Seo_Sitemap_Abstract.

Definition at line 65 of file Product.php.

00066     {
00067         $helper = Mage::helper('catalog/product');
00068         /* @var $helper Mage_Catalog_Helper_Product */
00069         return $helper->getProductUrl($product);
00070     }


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

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