Class Mage_Catalog_Model_Config

Description

Magento

NOTICE OF LICENSE

This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.

DISCLAIMER

Do not edit or add to this file if you wish to upgrade Magento to newer versions in the future. If you wish to customize Magento for your needs please refer to http://www.magentocommerce.com for more information.

Located in /Catalog/Model/Config.php (line 28)

Mage_Eav_Model_Config
   |
   --Mage_Catalog_Model_Config
Class Constant Summary
XML_PATH_LIST_DEFAULT_SORT_BY = 'catalog/frontend/default_sort_by'
XML_PATH_PRODUCT_COLLECTION_ATTRIBUTES = 'frontend/product/collection/attributes'
Variable Summary
Method Summary
void getAttributeGroupId ( $attributeSetId,  $name)
void getAttributeGroupName ( $attributeSetId,  $id)
void getAttributeSetId ( $entityTypeId,  $name)
void getAttributeSetName ( $entityTypeId,  $id)
string getProductListDefaultSortBy ([mixed $store = null])
void getProductTypeId ( $name)
void getProductTypeName ( $id)
void getSourceOptionId ( $source,  $value)
integer getStoreId ()
void _construct ()
Variables
mixed $_attributeGroupsById (line 35)
  • access: protected
mixed $_attributeGroupsByName (line 36)
  • access: protected
mixed $_attributeSetsById (line 32)
  • access: protected
mixed $_attributeSetsByName (line 33)
  • access: protected
array $_productAttributes (line 45)

Array of attributes codes needed for product load

  • access: protected
mixed $_productTypesById (line 38)
  • access: protected
mixed $_storeId = null (line 61)
  • access: protected
array $_usedForSortBy (line 59)

Product Attributes For Sort By

  • access: protected
array $_usedInProductListing (line 52)

Product Attributes used in product listing

  • access: protected

Inherited Variables

Inherited from Mage_Eav_Model_Config

Mage_Eav_Model_Config::$_attributeCodes
Mage_Eav_Model_Config::$_attributeData
Mage_Eav_Model_Config::$_collectionAttributes
Mage_Eav_Model_Config::$_entityData
Mage_Eav_Model_Config::$_initializedAttributes
Mage_Eav_Model_Config::$_isCacheEnabled
Mage_Eav_Model_Config::$_objects
Mage_Eav_Model_Config::$_preloadedAttributes
Mage_Eav_Model_Config::$_references
Methods
getAttributeGroupId (line 180)
  • access: public
void getAttributeGroupId ( $attributeSetId,  $name)
  • $attributeSetId
  • $name
getAttributeGroupName (line 166)
  • access: public
void getAttributeGroupName ( $attributeSetId,  $id)
  • $attributeSetId
  • $id
getAttributeSetId (line 132)
  • access: public
void getAttributeSetId ( $entityTypeId,  $name)
  • $entityTypeId
  • $name
getAttributeSetName (line 119)
  • access: public
void getAttributeSetName ( $entityTypeId,  $id)
  • $entityTypeId
  • $id
getAttributesUsedForSortBy (line 316)

Retrieve Attributes array used for sort by

  • access: public
array getAttributesUsedForSortBy ()
getAttributesUsedInProductListing (line 293)

Retrieve Attributes used in product listing

  • access: public
array getAttributesUsedInProductListing ()
getAttributeUsedForSortByArray (line 339)

Retrieve Attributes Used for Sort by as array key = code, value = name

  • access: public
array getAttributeUsedForSortByArray ()
getProductAttributes (line 257)

Load Product attributes

  • access: public
array getProductAttributes ()
getProductCollectionAttributes (line 271)

Retrieve Product Collection Attributes from XML config file Used only for install/upgrade

  • access: public
array getProductCollectionAttributes ()
getProductListDefaultSortBy (line 358)

Retrieve Product List Default Sort By

  • access: public
string getProductListDefaultSortBy ([mixed $store = null])
  • mixed $store
getProductTypeId (line 219)
  • access: public
void getProductTypeId ( $name)
  • $name
getProductTypeName (line 231)
  • access: public
void getProductTypeName ( $id)
  • $id
getSourceOptionId (line 242)
  • access: public
void getSourceOptionId ( $source,  $value)
  • $source
  • $value
getStoreId (line 91)

Return store id, if is not set return current app store

  • access: public
integer getStoreId ()
loadAttributeGroups (line 146)
  • access: public
void loadAttributeGroups ()
loadAttributeSets (line 99)
  • access: public
void loadAttributeSets ()
loadProductTypes (line 195)
  • access: public
void loadProductTypes ()
setStoreId (line 80)

Set store id

  • access: public
Mage_Catalog_Model_Config setStoreId (integer $storeId)
  • integer $storeId
_construct (line 69)

Initialize resource model

  • access: protected
void _construct ()
_getResource (line 283)

Retrieve resource model

  • access: protected

Inherited Methods

Inherited From Mage_Eav_Model_Config

Mage_Eav_Model_Config::clear()
Mage_Eav_Model_Config::getAttribute()
Mage_Eav_Model_Config::getCollectionAttribute()
Mage_Eav_Model_Config::getEntityAttributeCodes()
Mage_Eav_Model_Config::getEntityType()
Mage_Eav_Model_Config::importAttributesData()
Mage_Eav_Model_Config::loadCollectionAttributes()
Mage_Eav_Model_Config::preloadAttributes()
Mage_Eav_Model_Config::_addAttributeReference()
Mage_Eav_Model_Config::_addEntityTypeReference()
Mage_Eav_Model_Config::_createAttribute()
Mage_Eav_Model_Config::_getAttributeKey()
Mage_Eav_Model_Config::_getAttributeReference()
Mage_Eav_Model_Config::_getEntityKey()
Mage_Eav_Model_Config::_getEntityTypeReference()
Mage_Eav_Model_Config::_initAttributes()
Mage_Eav_Model_Config::_initEntityTypes()
Mage_Eav_Model_Config::_isCacheEnabled()
Mage_Eav_Model_Config::_load()
Mage_Eav_Model_Config::_save()
Mage_Eav_Model_Config::_validateAttributeData()
Class Constants
XML_PATH_LIST_DEFAULT_SORT_BY = 'catalog/frontend/default_sort_by' (line 30)
XML_PATH_PRODUCT_COLLECTION_ATTRIBUTES = 'frontend/product/collection/attributes' (line 63)

Inherited Constants

Inherited from Mage_Eav_Model_Config

Mage_Eav_Model_Config::ATTRIBUTES_CACHE_ID
Mage_Eav_Model_Config::ENTITIES_CACHE_ID

Documentation generated on Fri, 11 Feb 2011 16:59:17 +0200 by phpDocumentor 1.4.3