Mage_Cms_Model_Observer Class Reference

List of all members.

Public Member Functions

 noRoute (Varien_Event_Observer $observer)
 noCookies (Varien_Event_Observer $observer)


Detailed Description

Definition at line 35 of file Observer.php.


Member Function Documentation

noCookies ( Varien_Event_Observer observer  ) 

Modify no Cookies forward object

Parameters:
Varien_Event_Observer $observer
Returns:
Mage_Cms_Model_Observer

Definition at line 59 of file Observer.php.

00060     {
00061         $redirect = $observer->getEvent()->getRedirect();
00062 
00063         $pageId  = Mage::getStoreConfig(Mage_Cms_Helper_Page::XML_PATH_NO_COOKIES_PAGE);
00064         $pageUrl = Mage::helper('cms/page')->getPageUrl($pageId);
00065 
00066         if ($pageUrl) {
00067             $redirect->setRedirectUrl($pageUrl);
00068         }
00069         else {
00070             $redirect->setRedirect(true)
00071                 ->setPath('cms/index/noCookies')
00072                 ->setArguments(array());
00073         }
00074         return $this;
00075     }

noRoute ( Varien_Event_Observer observer  ) 

Modify No Route Forward object

Parameters:
Varien_Event_Observer $observer
Returns:
Mage_Cms_Model_Observer

Definition at line 43 of file Observer.php.

00044     {
00045         $observer->getEvent()->getStatus()
00046             ->setLoaded(true)
00047             ->setForwardModule('cms')
00048             ->setForwardController('index')
00049             ->setForwardAction('noRoute');
00050         return $this;
00051     }


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

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