Mage_Catalog_Block_Seo_Sitemap_Abstract Class Reference

Inheritance diagram for Mage_Catalog_Block_Seo_Sitemap_Abstract:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object Mage_Catalog_Block_Seo_Sitemap_Category Mage_Catalog_Block_Seo_Sitemap_Product Mage_Catalog_Block_Seo_Sitemap_Tree_Category

List of all members.

Public Member Functions

 bindPager ($pagerName)
 getItemUrl ($item)


Detailed Description

Definition at line 35 of file Abstract.php.


Member Function Documentation

bindPager ( pagerName  ) 

Init pager

Parameters:
string $pagerName

Reimplemented in Mage_Catalog_Block_Seo_Sitemap_Tree_Category.

Definition at line 43 of file Abstract.php.

00044     {
00045         $pager = $this->getLayout()->getBlock($pagerName);
00046         /* @var $pager Mage_Page_Html_Pager */
00047         if ($pager) {
00048             $pager->setAvailableLimit(array(50 => 50));
00049             $pager->setCollection($this->getCollection());
00050             $pager->setShowPerPage(false);
00051         }
00052     }

getItemUrl ( item  ) 

Get item URL

In most cases should be overriden in descendant blocks

Parameters:
Varien_Object $item
Returns:
string

Reimplemented in Mage_Catalog_Block_Seo_Sitemap_Category, and Mage_Catalog_Block_Seo_Sitemap_Product.

Definition at line 62 of file Abstract.php.

00063     {
00064         return $item->getUrl();
00065     }


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