Public Member Functions | |
newAction () | |
specialAction () | |
salesruleAction () | |
tagAction () | |
notifystockAction () | |
reviewAction () | |
categoryAction () | |
Protected Member Functions | |
isFeedEnable ($code) | |
checkFeedEnable ($code) |
Definition at line 35 of file CatalogController.php.
categoryAction | ( | ) |
Definition at line 108 of file CatalogController.php.
00109 { 00110 if ($this->checkFeedEnable('category')) { 00111 $this->loadLayout(false); 00112 $this->renderLayout(); 00113 } 00114 }
checkFeedEnable | ( | $ | code | ) | [protected] |
Definition at line 42 of file CatalogController.php.
00043 { 00044 if ($this->isFeedEnable($code)) { 00045 $this->getResponse()->setHeader('Content-type', 'text/xml; charset=UTF-8'); 00046 return true; 00047 } else { 00048 $this->getResponse()->setHeader('HTTP/1.1','404 Not Found'); 00049 $this->getResponse()->setHeader('Status','404 File not found'); 00050 $this->_forward('nofeed','index','rss'); 00051 return false; 00052 } 00053 }
isFeedEnable | ( | $ | code | ) | [protected] |
Definition at line 37 of file CatalogController.php.
00038 { 00039 return Mage::getStoreConfig('rss/catalog/'.$code); 00040 }
newAction | ( | ) |
Definition at line 55 of file CatalogController.php.
00056 { 00057 $this->checkFeedEnable('new'); 00058 $this->loadLayout(false); 00059 $this->renderLayout(); 00060 }
notifystockAction | ( | ) |
Definition at line 92 of file CatalogController.php.
00093 { 00094 Mage::helper('rss')->authAdmin('catalog/products'); 00095 $this->getResponse()->setHeader('Content-type', 'text/xml; charset=UTF-8'); 00096 $this->loadLayout(false); 00097 $this->renderLayout(); 00098 }
reviewAction | ( | ) |
Definition at line 100 of file CatalogController.php.
00101 { 00102 Mage::helper('rss')->authAdmin('catalog/reviews_ratings'); 00103 $this->getResponse()->setHeader('Content-type', 'text/xml; charset=UTF-8'); 00104 $this->loadLayout(false); 00105 $this->renderLayout(); 00106 }
salesruleAction | ( | ) |
Definition at line 69 of file CatalogController.php.
00070 { 00071 $this->checkFeedEnable('salesrule'); 00072 $this->loadLayout(false); 00073 $this->renderLayout(); 00074 }
specialAction | ( | ) |
Definition at line 62 of file CatalogController.php.
00063 { 00064 $this->checkFeedEnable('special'); 00065 $this->loadLayout(false); 00066 $this->renderLayout(); 00067 }
tagAction | ( | ) |
Definition at line 76 of file CatalogController.php.
00077 { 00078 if ($this->checkFeedEnable('tag')) { 00079 $tagName = $this->getRequest()->getParam('tagName'); 00080 $tagModel = Mage::getModel('tag/tag'); 00081 $tagModel->loadByName($tagName); 00082 if ($tagModel->getId() && $tagModel->getStatus()==$tagModel->getApprovedStatus()) { 00083 Mage::register('tag_model', $tagModel); 00084 $this->loadLayout(false); 00085 $this->renderLayout(); 00086 return; 00087 } 00088 } 00089 $this->_forward('nofeed', 'index', 'rss'); 00090 }