Class Mage_Catalog_Helper_Data

Description

Catalog data helper

Located in /Catalog/Helper/Data.php (line 35)

Mage_Core_Helper_Abstract
   |
   --Mage_Catalog_Helper_Data
Class Constant Summary
CONFIG_PARSE_URL_DIRECTIVES = 'catalog/frontend/parse_url_directives'
CONFIG_USE_STATIC_URLS = 'cms/wysiwyg/use_static_urls_in_catalog'
XML_PATH_CONTENT_TEMPLATE_FILTER = 'global/catalog/content/tempate_filter'
XML_PATH_PRICE_SCOPE = 'catalog/price/scope'
XML_PATH_SEO_SAVE_HISTORY = 'catalog/seo/save_rewrites_history'
Variable Summary
Method Summary
string getBreadcrumbPath ()
string getLastViewedUrl ()
Varien_Filter_Template getPageTemplateProcessor ()
int getPriceScope ()
bool isPriceGlobal ()
void setStoreId (int $store)
bool shouldSaveUrlRewritesHistory ([int $storeId = null])
array splitSku (string $sku, [int $length = 30])
bool _isCategoryLink (int $categoryId)
Variables
string $_categoryPath (line 50)

Breadcrumb Path cache

  • access: protected
int $_storeId = null (line 57)

Currenty selected store ID if applicable

  • access: protected

Inherited Variables

Inherited from Mage_Core_Helper_Abstract

Mage_Core_Helper_Abstract::$_layout
Mage_Core_Helper_Abstract::$_moduleName
Mage_Core_Helper_Abstract::$_request
Methods
getAttributeDisabledTypes (line 201)

Retrieve attribute disabled types

  • access: public
array getAttributeDisabledTypes ()
getAttributeHiddenFields (line 187)

Retrieve attribute hidden fields

  • access: public
array getAttributeHiddenFields ()
getBreadcrumbPath (line 76)

Return current category path or get it from current category and creating array of categories|product paths for breadcrumbs

  • access: public
string getBreadcrumbPath ()
getCategory (line 129)

Return current category object

  • access: public
Mage_Catalog_Model_Category|null getCategory ()
getLastViewedUrl (line 149)

Retrieve Visitor/Customer Last Viewed URL

  • access: public
string getLastViewedUrl ()
getPageTemplateProcessor (line 266)

Retrieve template processor for catalog content

  • access: public
Varien_Filter_Template getPageTemplateProcessor ()
getPriceScope (line 215)

Retrieve Catalog Price Scope

  • access: public
int getPriceScope ()
getProduct (line 139)

Retrieve current Product object

  • access: public
Mage_Catalog_Model_Product|null getProduct ()
isPriceGlobal (line 225)

Is Global Price

  • access: public
bool isPriceGlobal ()
isUrlDirectivesParsingAllowed (line 256)

Check if the parsing of URL directives is allowed for the catalog

  • access: public
bool isUrlDirectivesParsingAllowed ()
isUsingStaticUrlsAllowed (line 246)

Check if the store is configured to use static URLs for media

  • access: public
bool isUsingStaticUrlsAllowed ()
setStoreId (line 64)

Set a specified store ID value

  • access: public
void setStoreId (int $store)
  • int $store
shouldSaveUrlRewritesHistory (line 236)

Indicate whether to save URL Rewrite History or not (create redirects to old URLs)

  • access: public
bool shouldSaveUrlRewritesHistory ([int $storeId = null])
  • int $storeId: Store View
splitSku (line 177)

Split SKU of an item by dashes and spaces Words will not be broken, unless thir length is greater than $length

  • access: public
array splitSku (string $sku, [int $length = 30])
  • string $sku
  • int $length
_isCategoryLink (line 113)

Check is category link

  • access: protected
bool _isCategoryLink (int $categoryId)
  • int $categoryId

Inherited Methods

Inherited From Mage_Core_Helper_Abstract

Mage_Core_Helper_Abstract::escapeHtml()
Mage_Core_Helper_Abstract::escapeUrl()
Mage_Core_Helper_Abstract::getLayout()
Mage_Core_Helper_Abstract::htmlEscape()
Mage_Core_Helper_Abstract::isModuleEnabled()
Mage_Core_Helper_Abstract::isModuleOutputEnabled()
Mage_Core_Helper_Abstract::jsQuoteEscape()
Mage_Core_Helper_Abstract::setLayout()
Mage_Core_Helper_Abstract::stripTags()
Mage_Core_Helper_Abstract::translateArray()
Mage_Core_Helper_Abstract::urlDecode()
Mage_Core_Helper_Abstract::urlEncode()
Mage_Core_Helper_Abstract::urlEscape()
Mage_Core_Helper_Abstract::_cleanCache()
Mage_Core_Helper_Abstract::_getModuleName()
Mage_Core_Helper_Abstract::_getRequest()
Mage_Core_Helper_Abstract::_getUrl()
Mage_Core_Helper_Abstract::_loadCache()
Mage_Core_Helper_Abstract::_removeCache()
Mage_Core_Helper_Abstract::_saveCache()
Mage_Core_Helper_Abstract::__()
Class Constants
CONFIG_PARSE_URL_DIRECTIVES = 'catalog/frontend/parse_url_directives' (line 42)
CONFIG_USE_STATIC_URLS = 'cms/wysiwyg/use_static_urls_in_catalog' (line 41)
PRICE_SCOPE_GLOBAL = 0 (line 37)
PRICE_SCOPE_WEBSITE = 1 (line 38)
XML_PATH_CONTENT_TEMPLATE_FILTER = 'global/catalog/content/tempate_filter' (line 43)
XML_PATH_PRICE_SCOPE = 'catalog/price/scope' (line 39)
XML_PATH_SEO_SAVE_HISTORY = 'catalog/seo/save_rewrites_history' (line 40)

Documentation generated on Fri, 11 Feb 2011 17:00:34 +0200 by phpDocumentor 1.4.3