Class Mage_Eav_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 /Eav/Model/Config.php (line 28)


	
			
Direct descendents
Class Description
Mage_Catalog_Model_Config Magento
Class Constant Summary
ATTRIBUTES_CACHE_ID = 'EAV_ENTITY_ATTRIBUTES'
ENTITIES_CACHE_ID = 'EAV_ENTITY_TYPES'
Variable Summary
Method Summary
Mage_Eav_Model_Entity_Attribute_Abstract getAttribute (mixed $entityType, mixed $code)
Mage_Eav_Model_Entity_Attribute_Abstract getCollectionAttribute (mixed $entityType, string $attribute)
array getEntityAttributeCodes (mixed $entityType, [Varien_Object $object = null])
Mage_Eav_Model_Config loadCollectionAttributes (mixed $entityType, array $attributes)
Mage_Eav_Model_Config preloadAttributes (mixed $entityType, mixed $attributes)
Mage_Eav_Model_Config _addAttributeReference (int $id, string $code, string $entityTypeCode)
Mage_Eav_Model_Entity_Attribute_Abstract _createAttribute (string $entityType, array $attributeData)
string _getAttributeKey (string $entityTypeCode, string $attributeCode)
string _getAttributeReference (int $id, string $entityTypeCode)
string _getEntityKey (string $code)
string _getEntityTypeReference (int $id)
Mage_Eav_Model_Config _initAttributes (string $entityType)
bool _isCacheEnabled ()
mixed _load (mixed $id)
Mage_Eav_Model_Config _save (mixed $obj, mixed $id)
bool _validateAttributeData ([array $attributeData = null])
Variables
array $_attributeCodes = array() (line 66)

Attribute codes cache array

  • access: protected
array $_attributeData (line 45)

Attributes data

  • access: protected
array $_collectionAttributes = array() (line 101)

Array of attributes objects used in collections

  • access: protected
array $_entityData (line 38)

Entity types data

  • access: protected
array $_initializedAttributes = array() (line 59)

Information about entity types with initialized attributes

  • access: protected
unknown_type $_isCacheEnabled = null (line 94)

Cache flag

  • access: protected
array $_objects (line 75)

Initialized objects

array ($objectId => $object)

  • access: protected
array $_preloadedAttributes = array() (line 52)

Information about preloaded attributes

  • access: protected
array $_references (line 87)

References between codes and identifiers

array ( 'attributes'=> array ($attributeId => $attributeCode), 'entities' => array ($entityId => $entityCode) )

  • access: protected
Methods
clear (line 109)

Reset object state

  • deprecated:
  • access: public
getAttribute (line 381)

Get attribute by code for entity type

  • access: public
Mage_Eav_Model_Entity_Attribute_Abstract getAttribute (mixed $entityType, mixed $code)
  • mixed $entityType
  • mixed $code
getCollectionAttribute (line 566)

Get attribute object for colection usage

  • access: public
Mage_Eav_Model_Entity_Attribute_Abstract getCollectionAttribute (mixed $entityType, string $attribute)
  • mixed $entityType
  • string $attribute
getEntityAttributeCodes (line 458)

Get codes of all entity type attributes

  • access: public
array getEntityAttributeCodes (mixed $entityType, [Varien_Object $object = null])
  • mixed $entityType
  • Varien_Object $object
getEntityType (line 295)

Get entity type object by entity type code/identifier

  • access: public
Mage_Eav_Model_Entity_Type getEntityType (mixed $code)
  • mixed $code
importAttributesData (line 704)

Import attributes data from external source

  • access: public
Mage_Eav_Model_Config importAttributesData (string|Mage_Eav_Model_Entity_Type $entityType,  $attributes)
loadCollectionAttributes (line 593)

Prepare attributes for usage in EAV collection

  • access: public
Mage_Eav_Model_Config loadCollectionAttributes (mixed $entityType, array $attributes)
  • mixed $entityType
  • array $attributes
preloadAttributes (line 504)

Preload entity type attributes for performance optimization

  • access: public
Mage_Eav_Model_Config preloadAttributes (mixed $entityType, mixed $attributes)
  • mixed $entityType
  • mixed $attributes
_addAttributeReference (line 176)

Specify reference between entity attribute id and attribute code

  • access: protected
Mage_Eav_Model_Config _addAttributeReference (int $id, string $code, string $entityTypeCode)
  • int $id
  • string $code
  • string $entityTypeCode
_addEntityTypeReference (line 151)

Specify reference for entity type id

  • access: protected
Mage_Eav_Model_Config _addEntityTypeReference (int $id, string $code)
  • int $id
  • string $code
_createAttribute (line 639)

Create attribute from attribute data array

  • access: protected
Mage_Eav_Model_Entity_Attribute_Abstract _createAttribute (string $entityType, array $attributeData)
  • string $entityType
  • array $attributeData
_getAttributeKey (line 215)

Get internal cache key for attribute object cache

  • access: protected
string _getAttributeKey (string $entityTypeCode, string $attributeCode)
  • string $entityTypeCode
  • string $attributeCode
_getAttributeReference (line 189)

Get attribute code by attribute id

  • access: protected
string _getAttributeReference (int $id, string $entityTypeCode)
  • int $id
  • string $entityTypeCode
_getEntityKey (line 203)

Get internal cache key for entity type code

  • access: protected
string _getEntityKey (string $code)
  • string $code
_getEntityTypeReference (line 163)

Get entity type code by id

  • access: protected
string _getEntityTypeReference (int $id)
  • int $id
_initAttributes (line 346)

Initialize all attributes for entity type

  • access: protected
Mage_Eav_Model_Config _initAttributes (string $entityType)
  • string $entityType
_initEntityTypes (line 238)

Initialize all entity types data

  • access: protected
Mage_Eav_Model_Config _initEntityTypes ()
_isCacheEnabled (line 225)

Check EAV cache availability

  • access: protected
bool _isCacheEnabled ()
_load (line 126)

Get object by idetifier

  • access: protected
mixed _load (mixed $id)
  • mixed $id
_save (line 138)

Associate object with identifier

  • access: protected
Mage_Eav_Model_Config _save (mixed $obj, mixed $id)
  • mixed $obj
  • mixed $id
_validateAttributeData (line 677)

Validate attribute data from import

  • access: protected
bool _validateAttributeData ([array $attributeData = null])
  • array $attributeData
Class Constants
ATTRIBUTES_CACHE_ID = 'EAV_ENTITY_ATTRIBUTES' (line 31)
ENTITIES_CACHE_ID = 'EAV_ENTITY_TYPES' (line 30)

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