Public Member Functions | |
fetchDefault () | |
Protected Member Functions | |
_beforeModuleMatch () | |
_afterModuleMatch () | |
_noRouteShouldBeApplied () | |
_shouldBeSecure ($path) | |
_getCurrentSecureUrl ($request) |
Definition at line 28 of file Admin.php.
_afterModuleMatch | ( | ) | [protected] |
checking if we installed or not and doing redirect
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
Reimplemented from Mage_Core_Controller_Varien_Router_Standard.
Definition at line 46 of file Admin.php.
_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
Reimplemented from Mage_Core_Controller_Varien_Router_Standard.
Definition at line 73 of file Admin.php.
_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 }