Class Mage_Catalog_Model_Url
Catalog url model
Category: 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/Catalog/Model/Url.php
protected
|
#
_addCategoryUrlPath( Varien_Object $category )
Adds url_path property for non-root category - to ensure that url path is not empty. |
public
|
|
public
|
|
public
|
|
public
|
|
public
Varien_Object
|
|
public
|
#
setShouldSaveRewritesHistory( boolean $flag )
Setter for $_saveRewritesHistory Force Rewrites History save bypass config settings |
public
boolean
|
#
getShouldSaveRewritesHistory( integer $storeId = null )
Indicate whether to save URL Rewrite History or not (create redirects to old URLs) |
public
|
#
refreshRewrites( integer $storeId = null )
Refresh all rewrite urls for some store or for all stores Used to make full reindexing of url rewrites |
protected
|
#
_refreshCategoryRewrites( Varien_Object $category, string $parentPath = null, boolean $refreshProducts = true )
Refresh category rewrite |
protected
|
|
protected
|
|
public
|
#
refreshCategoryRewrite( integer $categoryId, integer|null $storeId = null, boolean $refreshProducts = true )
Refresh category and childs rewrites Called when reindexing all rewrites and as a reaction on category change that affects rewrites |
public
|
#
refreshProductRewrite( integer $productId, integer|null $storeId = null )
Refresh product rewrite urls for one store or all stores Called as a reaction on product change that affects rewrites |
public
|
|
public
|
#
clearStoreInvalidRewrites( integer $storeId = null )
Deletes old rewrites for store, left from the times when store had some other root category |
public
string
|
#
getUnusedPath( integer $storeId, string $requestPath, string $idPath )
Get requestPath that was not used yet. |
public
string
|
|
public
string
|
|
public
string
|
#
getCategoryRequestPath( Varien_Object $category, string $parentPath )
Get unique category request path |
protected
boolean
|
#
_deleteOldTargetPath( string $requestPath, string $idPath, integer $storeId )
Check if current generated request path is one of the old paths |
public
string
|
#
getProductRequestPath( Varien_Object $product, Varien_Object $category )
Get unique product request path |
public
string
|
#
generatePath( string $type = 'target', Varien_Object $product = null, Varien_Object $category = null, string $parentPath = null )
Generate either id path, request path or target path for product and/or category |
public
string
|
|
protected
|
#
_saveRewriteHistory( array $rewriteData, Varien_Object $rewrite )
Create Custom URL Rewrite for old product/category URL after url_key changed It will perform permanent redirect from old URL to new URL |
integer |
MAX_REQUEST_PATH_LENGTH
|
240 |
#
Number of characters allowed to be in URL path |
integer |
ALLOWED_REQUEST_PATH_OVERFLOW
|
10 |
#
Number of characters allowed to be in URL path after MAX_REQUEST_PATH_LENGTH number of characters |
protected
|
$_resourceModel |
|
#
Resource model |
protected
array
|
$_categories | array() |
#
Categories cache for products |
protected
array
|
$_rootCategories | array() |
#
Store root categories cache |
protected
array
|
$_rewrites | array() |
#
Rewrite cache |
protected
Varien_Object
|
$_rewrite |
|
#
Current url rewrite rule |
protected
array
|
$_productUrlSuffix | array() |
#
Cache for product rewrite suffix |
protected
array
|
$_categoryUrlSuffix | array() |
#
Cache for category rewrite suffix |
protected
boolean
|
$_saveRewritesHistory | null |
#
Flag to overwrite config settings for Catalog URL rewrites history maintainance |
protected static
|
$_categoryForUrlPath |
|
#
Singleton of category model for building URL path |