Mage_Adminhtml_Helper_Rss Class Reference

Inheritance diagram for Mage_Adminhtml_Helper_Rss:

Mage_Core_Helper_Abstract

List of all members.

Public Member Functions

 authAdmin ($path)


Detailed Description

Default rss helper

Author:
Magento Core Team <core@magentocommerce.com>

Definition at line 32 of file Rss.php.


Member Function Documentation

authAdmin ( path  ) 

Definition at line 34 of file Rss.php.

00035     {
00036         $session = Mage::getSingleton('rss/session');
00037         if ($session->isAdminLoggedIn()) {
00038             return;
00039         }
00040         list($username, $password) = Mage::helper('core/http')->authValidate();
00041         $adminSession = Mage::getModel('admin/session');
00042         $user = $adminSession->login($username, $password);
00043         //$user = Mage::getModel('admin/user')->login($username, $password);
00044         if($user && $user->getId() && $user->getIsActive() == '1' && $adminSession->isAllowed($path)){
00045             $session->setAdmin($user);
00046         } else {
00047             Mage::helper('core/http')->authFailed();
00048         }
00049     }


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

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