Mage_Core_Controller_Varien_Router_Admin Class Reference

Inheritance diagram for Mage_Core_Controller_Varien_Router_Admin:

Mage_Core_Controller_Varien_Router_Standard Mage_Core_Controller_Varien_Router_Abstract

List of all members.

Public Member Functions

 fetchDefault ()

Protected Member Functions

 _beforeModuleMatch ()
 _afterModuleMatch ()
 _noRouteShouldBeApplied ()
 _shouldBeSecure ($path)
 _getCurrentSecureUrl ($request)


Detailed Description

Definition at line 28 of file Admin.php.


Member Function Documentation

_afterModuleMatch (  )  [protected]

checking if we installed or not and doing redirect

Returns:
bool

Reimplemented from Mage_Core_Controller_Varien_Router_Standard.

Definition at line 56 of file Admin.php.

00057     {
00058         if (!Mage::isInstalled()) {
00059             Mage::app()->getFrontController()->getResponse()
00060                 ->setRedirect(Mage::getUrl('install'))
00061                 ->sendResponse();
00062             exit;
00063         }
00064         return true;
00065     }

_beforeModuleMatch (  )  [protected]

dummy call to pass through checking

Returns:
unknown

Reimplemented from Mage_Core_Controller_Varien_Router_Standard.

Definition at line 46 of file Admin.php.

00047     {
00048         return true;
00049     }

_getCurrentSecureUrl ( request  )  [protected]

Reimplemented from Mage_Core_Controller_Varien_Router_Standard.

Definition at line 85 of file Admin.php.

00086     {
00087         return Mage::app()->getStore(Mage_Core_Model_App::ADMIN_STORE_ID)->getBaseUrl('link', true).ltrim($request->getPathInfo(), '/');
00088     }

_noRouteShouldBeApplied (  )  [protected]

We need to have noroute action in this router not to pass dispatching to next routers

Returns:
bool

Reimplemented from Mage_Core_Controller_Varien_Router_Standard.

Definition at line 73 of file Admin.php.

00074     {
00075         return true;
00076     }

_shouldBeSecure ( path  )  [protected]

Reimplemented from Mage_Core_Controller_Varien_Router_Standard.

Definition at line 78 of file Admin.php.

00079     {
00080         return substr((string)Mage::getConfig()->getNode('default/web/unsecure/base_url'),0,5)==='https'
00081             || Mage::getStoreConfigFlag('web/secure/use_in_adminhtml', Mage_Core_Model_App::ADMIN_STORE_ID)
00082             && substr((string)Mage::getConfig()->getNode('default/web/secure/base_url'),0,5)==='https';
00083     }

fetchDefault (  ) 

Reimplemented from Mage_Core_Controller_Varien_Router_Standard.

Definition at line 30 of file Admin.php.

00031     {
00032         // set defaults
00033         $d = explode('/', (string)Mage::getConfig()->getNode('default/web/default/admin'));
00034         $this->getFront()->setDefault(array(
00035             'module'     => !empty($d[0]) ? $d[0] : '',
00036             'controller' => !empty($d[1]) ? $d[1] : 'index',
00037             'action'     => !empty($d[2]) ? $d[2] : 'index'
00038         ));
00039     }


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

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