Overview

Packages

  • currencysymbol
  • MAbout
  • Mage
    • Admin
    • Adminhtml
    • AdminNotification
    • Api
    • Api2
    • Authorizenet
    • Backup
    • Bundle
    • Captcha
    • Catalog
    • CatalogIndex
    • CatalogInventory
    • CatalogRule
    • CatalogSearch
    • Centinel
    • Checkout
    • Cms
    • Compiler
    • Connect
    • Contacts
    • Core
    • Cron
    • CurrencySymbol
    • Customer
    • Dataflow
    • Directory
    • DirtectPost
    • Downloadable
    • Eav
    • GiftMessage
    • GoogleAnalytics
    • GoogleBase
    • GoogleCheckout
    • ImportExport
    • Index
    • Install
    • Log
    • Media
    • Newsletter
    • Oauth
    • Page
    • PageCache
    • Paygate
    • Payment
    • Paypal
    • PaypalUk
    • Persistent
    • Poll
    • ProductAlert
    • Rating
    • Reports
    • Review
    • Rss
    • Rule
    • Sales
    • SalesRule
    • Sedfriend
    • Sendfriend
    • Shipping
    • Sitemap
    • Tag
    • Tax
    • Usa
    • Weee
    • Widget
    • Wishlist
    • XmlConnect
  • None
  • Phoenix
    • Moneybookers
  • PHP
  • Zend
    • Date
    • Mime
    • XmlRpc

Classes

  • Mage_Catalog_Model_Entity_Product_Attribute_Design_Options_Container
  • Mage_Catalog_Model_Product_Attribute_Source_Inputtype
  • Mage_Eav_Block_Adminhtml_Attribute_Edit_Js
  • Mage_Eav_Block_Adminhtml_Attribute_Edit_Main_Abstract
  • Mage_Eav_Block_Adminhtml_Attribute_Edit_Options_Abstract
  • Mage_Eav_Helper_Data
  • Mage_Eav_Model_Adminhtml_System_Config_Source_Inputtype
  • Mage_Eav_Model_Adminhtml_System_Config_Source_Inputtype_Validator
  • Mage_Eav_Model_Attribute
  • Mage_Eav_Model_Attribute_Data
  • Mage_Eav_Model_Attribute_Data_Abstract
  • Mage_Eav_Model_Attribute_Data_Boolean
  • Mage_Eav_Model_Attribute_Data_Date
  • Mage_Eav_Model_Attribute_Data_File
  • Mage_Eav_Model_Attribute_Data_Hidden
  • Mage_Eav_Model_Attribute_Data_Image
  • Mage_Eav_Model_Attribute_Data_Multiline
  • Mage_Eav_Model_Attribute_Data_Multiselect
  • Mage_Eav_Model_Attribute_Data_Select
  • Mage_Eav_Model_Attribute_Data_Text
  • Mage_Eav_Model_Attribute_Data_Textarea
  • Mage_Eav_Model_Config
  • Mage_Eav_Model_Convert_Adapter_Entity
  • Mage_Eav_Model_Convert_Adapter_Grid
  • Mage_Eav_Model_Convert_Parser_Abstract
  • Mage_Eav_Model_Entity
  • Mage_Eav_Model_Entity_Abstract
  • Mage_Eav_Model_Entity_Attribute
  • Mage_Eav_Model_Entity_Attribute_Abstract
  • Mage_Eav_Model_Entity_Attribute_Backend_Abstract
  • Mage_Eav_Model_Entity_Attribute_Backend_Array
  • Mage_Eav_Model_Entity_Attribute_Backend_Datetime
  • Mage_Eav_Model_Entity_Attribute_Backend_Default
  • Mage_Eav_Model_Entity_Attribute_Backend_Increment
  • Mage_Eav_Model_Entity_Attribute_Backend_Serialized
  • Mage_Eav_Model_Entity_Attribute_Backend_Store
  • Mage_Eav_Model_Entity_Attribute_Backend_Time_Created
  • Mage_Eav_Model_Entity_Attribute_Backend_Time_Updated
  • Mage_Eav_Model_Entity_Attribute_Frontend_Abstract
  • Mage_Eav_Model_Entity_Attribute_Frontend_Datetime
  • Mage_Eav_Model_Entity_Attribute_Frontend_Default
  • Mage_Eav_Model_Entity_Attribute_Group
  • Mage_Eav_Model_Entity_Attribute_Option
  • Mage_Eav_Model_Entity_Attribute_Set
  • Mage_Eav_Model_Entity_Attribute_Source_Abstract
  • Mage_Eav_Model_Entity_Attribute_Source_Boolean
  • Mage_Eav_Model_Entity_Attribute_Source_Config
  • Mage_Eav_Model_Entity_Attribute_Source_Store
  • Mage_Eav_Model_Entity_Attribute_Source_Table
  • Mage_Eav_Model_Entity_Collection
  • Mage_Eav_Model_Entity_Collection_Abstract
  • Mage_Eav_Model_Entity_Increment_Abstract
  • Mage_Eav_Model_Entity_Increment_Alphanum
  • Mage_Eav_Model_Entity_Increment_Numeric
  • Mage_Eav_Model_Entity_Setup
  • Mage_Eav_Model_Entity_Store
  • Mage_Eav_Model_Entity_Type
  • Mage_Eav_Model_Form
  • Mage_Eav_Model_Form_Element
  • Mage_Eav_Model_Form_Fieldset
  • Mage_Eav_Model_Form_Type
  • Mage_Eav_Model_Mysql4_Config
  • Mage_Eav_Model_Mysql4_Entity_Attribute
  • Mage_Eav_Model_Mysql4_Entity_Attribute_Collection
  • Mage_Eav_Model_Mysql4_Entity_Attribute_Group
  • Mage_Eav_Model_Mysql4_Entity_Attribute_Group_Collection
  • Mage_Eav_Model_Mysql4_Entity_Attribute_Option
  • Mage_Eav_Model_Mysql4_Entity_Attribute_Option_Collection
  • Mage_Eav_Model_Mysql4_Entity_Attribute_Set
  • Mage_Eav_Model_Mysql4_Entity_Attribute_Set_Collection
  • Mage_Eav_Model_Mysql4_Entity_Store
  • Mage_Eav_Model_Mysql4_Entity_Type
  • Mage_Eav_Model_Mysql4_Entity_Type_Collection
  • Mage_Eav_Model_Mysql4_Form_Element
  • Mage_Eav_Model_Mysql4_Form_Element_Collection
  • Mage_Eav_Model_Mysql4_Form_Fieldset
  • Mage_Eav_Model_Mysql4_Form_Fieldset_Collection
  • Mage_Eav_Model_Mysql4_Form_Type
  • Mage_Eav_Model_Mysql4_Form_Type_Collection
  • Mage_Eav_Model_Resource_Attribute
  • Mage_Eav_Model_Resource_Attribute_Collection
  • Mage_Eav_Model_Resource_Config
  • Mage_Eav_Model_Resource_Entity_Attribute
  • Mage_Eav_Model_Resource_Entity_Attribute_Collection
  • Mage_Eav_Model_Resource_Entity_Attribute_Group
  • Mage_Eav_Model_Resource_Entity_Attribute_Group_Collection
  • Mage_Eav_Model_Resource_Entity_Attribute_Option
  • Mage_Eav_Model_Resource_Entity_Attribute_Option_Collection
  • Mage_Eav_Model_Resource_Entity_Attribute_Set
  • Mage_Eav_Model_Resource_Entity_Attribute_Set_Collection
  • Mage_Eav_Model_Resource_Entity_Store
  • Mage_Eav_Model_Resource_Entity_Type
  • Mage_Eav_Model_Resource_Entity_Type_Collection
  • Mage_Eav_Model_Resource_Form_Attribute
  • Mage_Eav_Model_Resource_Form_Attribute_Collection
  • Mage_Eav_Model_Resource_Form_Element
  • Mage_Eav_Model_Resource_Form_Element_Collection
  • Mage_Eav_Model_Resource_Form_Fieldset
  • Mage_Eav_Model_Resource_Form_Fieldset_Collection
  • Mage_Eav_Model_Resource_Form_Type
  • Mage_Eav_Model_Resource_Form_Type_Collection
  • Mage_Eav_Model_Resource_Helper_Mysql4

Interfaces

  • Mage_Eav_Model_Entity_Attribute_Backend_Interface
  • Mage_Eav_Model_Entity_Attribute_Frontend_Interface
  • Mage_Eav_Model_Entity_Attribute_Interface
  • Mage_Eav_Model_Entity_Attribute_Source_Interface
  • Mage_Eav_Model_Entity_Increment_Interface
  • Mage_Eav_Model_Entity_Interface

Exceptions

  • Mage_Eav_Exception
  • Mage_Eav_Model_Entity_Attribute_Exception
  • Overview
  • Package
  • Class
  • Tree

Class Mage_Eav_Model_Config

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 license@magentocommerce.com 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.

Direct known subclasses

Mage_Catalog_Model_Config
Package: Mage\Eav
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Located at code/core/Mage/Eav/Model/Config.php
Methods summary
protected mixed
# _load( mixed $id )

Get object by identifier

Get object by identifier

Parameters

$id
mixed
$id

Returns

mixed
protected Mage_Eav_Model_Config
# _save( mixed $obj, mixed $id )

Associate object with identifier

Associate object with identifier

Parameters

$obj
mixed
$obj
$id
mixed
$id

Returns

Mage_Eav_Model_Config
protected Mage_Eav_Model_Config
# _addEntityTypeReference( integer $id, string $code )

Specify reference for entity type id

Specify reference for entity type id

Parameters

$id
integer
$id
$code
string
$code

Returns

Mage_Eav_Model_Config
protected string
# _getEntityTypeReference( integer $id )

Get entity type code by id

Get entity type code by id

Parameters

$id
integer
$id

Returns

string
protected Mage_Eav_Model_Config
# _addAttributeReference( integer $id, string $code, string $entityTypeCode )

Specify reference between entity attribute id and attribute code

Specify reference between entity attribute id and attribute code

Parameters

$id
integer
$id
$code
string
$code
$entityTypeCode
string
$entityTypeCode

Returns

Mage_Eav_Model_Config
protected string
# _getAttributeReference( integer $id, string $entityTypeCode )

Get attribute code by attribute id

Get attribute code by attribute id

Parameters

$id
integer
$id
$entityTypeCode
string
$entityTypeCode

Returns

string
protected string
# _getEntityKey( string $code )

Get internal cache key for entity type code

Get internal cache key for entity type code

Parameters

$code
string
$code

Returns

string
protected string
# _getAttributeKey( string $entityTypeCode, string $attributeCode )

Get internal cache key for attribute object cache

Get internal cache key for attribute object cache

Parameters

$entityTypeCode
string
$entityTypeCode
$attributeCode
string
$attributeCode

Returns

string
protected boolean
# _isCacheEnabled( )

Check EAV cache availability

Check EAV cache availability

Returns

boolean
protected Mage_Eav_Model_Config
# _initEntityTypes( )

Initialize all entity types data

Initialize all entity types data

Returns

Mage_Eav_Model_Config
public Mage_Eav_Model_Entity_Type
# getEntityType( mixed $code )

Get entity type object by entity type code/identifier

Get entity type object by entity type code/identifier

Parameters

$code
mixed
$code

Returns

Mage_Eav_Model_Entity_Type
protected Mage_Eav_Model_Config
# _initAttributes( string $entityType )

Initialize all attributes for entity type

Initialize all attributes for entity type

Parameters

$entityType
string
$entityType

Returns

Mage_Eav_Model_Config
public Mage_Eav_Model_Entity_Attribute_Abstract|false
# getAttribute( mixed $entityType, mixed $code )

Get attribute by code for entity type

Get attribute by code for entity type

Parameters

$entityType
mixed
$entityType
$code
mixed
$code

Returns

Mage_Eav_Model_Entity_Attribute_Abstract|false
public array
# getEntityAttributeCodes( mixed $entityType, Varien_Object $object = null )

Get codes of all entity type attributes

Get codes of all entity type attributes

Parameters

$entityType
mixed
$entityType
$object
Varien_Object
$object

Returns

array
public Mage_Eav_Model_Config
# preloadAttributes( mixed $entityType, mixed $attributes )

Preload entity type attributes for performance optimization

Preload entity type attributes for performance optimization

Parameters

$entityType
mixed
$entityType
$attributes
mixed
$attributes

Returns

Mage_Eav_Model_Config
public Mage_Eav_Model_Entity_Attribute_Abstract|null
# getCollectionAttribute( mixed $entityType, string $attribute )

Get attribute object for colection usage

Get attribute object for colection usage

Parameters

$entityType
mixed
$entityType
$attribute
string
$attribute

Returns

Mage_Eav_Model_Entity_Attribute_Abstract|null
public Mage_Eav_Model_Config
# loadCollectionAttributes( mixed $entityType, array $attributes )

Prepare attributes for usage in EAV collection

Prepare attributes for usage in EAV collection

Parameters

$entityType
mixed
$entityType
$attributes
array
$attributes

Returns

Mage_Eav_Model_Config
protected Mage_Eav_Model_Entity_Attribute_Abstract
# _createAttribute( string $entityType, array $attributeData )

Create attribute from attribute data array

Create attribute from attribute data array

Parameters

$entityType
string
$entityType
$attributeData
array
$attributeData

Returns

Mage_Eav_Model_Entity_Attribute_Abstract
protected boolean
# _validateAttributeData( array $attributeData = null )

Validate attribute data from import

Validate attribute data from import

Parameters

$attributeData
array
$attributeData

Returns

boolean
public Mage_Eav_Model_Config
# importAttributesData( string|Mage_Eav_Model_Entity_Type $entityType, array $attributes )

Import attributes data from external source

Import attributes data from external source

Parameters

$entityType
string|Mage_Eav_Model_Entity_Type
$entityType
$attributes
array
$attributes

Returns

Mage_Eav_Model_Config
Constants summary
string ENTITIES_CACHE_ID 'EAV_ENTITY_TYPES'
#
string ATTRIBUTES_CACHE_ID 'EAV_ENTITY_ATTRIBUTES'
#
Properties summary
protected array $_entityData
#

Entity types data

Entity types data

protected array $_attributeData
#

Attributes data

Attributes data

protected array $_preloadedAttributes array()
#

Information about preloaded attributes

Information about preloaded attributes

protected array $_initializedAttributes array()
#

Information about entity types with initialized attributes

Information about entity types with initialized attributes

protected array $_attributeCodes array()
#

Attribute codes cache array

Attribute codes cache array

protected array $_objects
#

Initialized objects

Initialized objects

array ($objectId => $object)

protected array $_references
#

References between codes and identifiers

References between codes and identifiers

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

protected unknown_type $_isCacheEnabled null
#

Cache flag

Cache flag

protected array $_collectionAttributes array()
#

Array of attributes objects used in collections

Array of attributes objects used in collections

Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0