Mage_Catalog_Seo_SitemapController Class Reference

Inheritance diagram for Mage_Catalog_Seo_SitemapController:

Mage_Core_Controller_Front_Action Mage_Core_Controller_Varien_Action

List of all members.

Public Member Functions

 preDispatch ()
 categoryAction ()
 productAction ()


Detailed Description

Definition at line 34 of file SitemapController.php.


Member Function Documentation

categoryAction (  ) 

Display categories listing

Definition at line 55 of file SitemapController.php.

00056     {
00057         $update = $this->getLayout()->getUpdate();
00058         $update->addHandle('default');
00059         $this->addActionLayoutHandles();
00060         if (Mage::helper('catalog/map')->getIsUseCategoryTreeMode()) {
00061             $update->addHandle(strtolower($this->getFullActionName()).'_tree');
00062         }
00063         $this->loadLayoutUpdates();
00064         $this->generateLayoutXml()->generateLayoutBlocks();
00065         $this->renderLayout();
00066     }

preDispatch (  ) 

Check if SEO sitemap is enabled in configuration

Returns:
Mage_Catalog_Seo_SitemapController

Reimplemented from Mage_Core_Controller_Front_Action.

Definition at line 42 of file SitemapController.php.

00042                                  {
00043         parent::preDispatch();
00044         if(!Mage::getStoreConfig('catalog/seo/site_map')){
00045               $this->_redirect('noroute');
00046               $this->setFlag('',self::FLAG_NO_DISPATCH,true);
00047         }
00048         return $this;
00049     }

productAction (  ) 

Display products listing

Definition at line 72 of file SitemapController.php.

00073     {
00074         $this->loadLayout();
00075         $this->renderLayout();
00076     }


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

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