Class Mage_Core_Model_Url
URL
Properties:
- request
- relative_url: true, false
- type: 'link', 'skin', 'js', 'media'
- store: instanceof Mage_Core_Model_Store
- secure: true, false
- scheme: 'http', 'https'
- user: 'user'
- password: 'password'
- host: 'localhost'
- port: 80, 443
- base_path: '/dev/magento/'
- base_script: 'index.php'
- storeview_path: 'storeview/'
- route_path: 'module/controller/action/param1/value1/param2/value2'
- route_name: 'module'
- controller_name: 'controller'
- action_name: 'action'
- route_params: array('param1'=>'value1', 'param2'=>'value2')
- query: (?)'param1=value1¶m2=value2'
- query_array: array('param1'=>'value1', 'param2'=>'value2')
- fragment: (#)'fragment-anchor'
URL structure:
https://user:password@host:443/base_path/[base_script][storeview_path]route_name/controller_name/action_name/param1/value1?query_param=query_value#fragment \__________A___________/\____________________________________B_____________________________________/ \__________________C___________________/ \__________________D_________________/ \_____E_____/ \_____________F______________/ \___________________________G______________________/ \___________________________________________________H____________________________________________________/
- A: authority
- B: path
- C: absolute_base_url
- D: action_path
- E: route_params
- F: host_url
- G: route_path
- H: route_url
- Varien_Object
-
Mage_Core_Model_Url
Direct known subclasses
Mage_Adminhtml_Model_UrlCategory: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Core/Model/Url.php
protected
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
string
|
|
public
string
|
|
public
|
|
public
Zend_Controller_Request_Http
|
|
public
string
|
|
public
boolean
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
string
|
|
public
|
|
public
string
|
|
public
string|null
|
|
public
|
|
public
string|null
|
|
public
|
|
public
string|null
|
|
public
|
|
public
array
|
|
public
|
|
public
mixed
|
|
public
string
|
|
public
|
#
checkCookieDomains( )
If the host was switched but session cookie won't recognize it - add session id to query |
public
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
array
|
|
public
|
|
public
mixed
|
|
public
|
|
public
string|null
|
|
public
string
|
|
protected
|
|
protected
|
#
_prepareSessionUrlWithParams( string $url, array $params )
Check and add session id to URL, session is obtained with parameters |
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
boolean
|
|
public
string
|
|
public
boolean
|
|
public
string
|
#
getRedirectUrl( string $url )
Return frontend redirect URL with SID and other session parameters if any |
string |
DEFAULT_CONTROLLER_NAME
|
'index' |
#
Default controller name |
string |
DEFAULT_ACTION_NAME
|
'index' |
#
Default action name |
string |
XML_PATH_UNSECURE_URL
|
'web/unsecure/base_url' |
#
Configuration paths |
string |
XML_PATH_SECURE_URL
|
'web/secure/base_url' |
|
string |
XML_PATH_SECURE_IN_ADMIN
|
'default/web/secure/use_in_adminhtml' |
|
string |
XML_PATH_SECURE_IN_FRONT
|
'web/secure/use_in_frontend' |
protected static
array
|
$_configDataCache |
|
#
Configuration data cache |
protected static
string|null
|
$_encryptedSessionId |
|
#
Encrypted session identifier |
protected
array
|
$_reservedRouteParams | array(
'_store', '_type', '_secure', '_forced_secure', '_use_rewrite', '_nosid',
'_absolute', '_current', '_direct', '_fragment', '_escape', '_query',
'_store_to_url'
) |
#
Reserved Route parameter keys |
protected
Zend_Controller_Request_Http
|
$_request |
|
#
Controller request object |
protected
boolean
|
$_useSession |
|
#
Use Session ID for generate URL |