Public Member Functions | |
getItemUrl ($product) | |
Protected Member Functions | |
_prepareLayout () |
Definition at line 34 of file Product.php.
_prepareLayout | ( | ) | [protected] |
Initialize products collection
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
Mage_Catalog_Model_Product | $category |
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 }