Class Mage_Eav_Model_Entity_Attribute

Description

EAV Entity attribute model

Located in /Eav/Model/Entity/Attribute.php (line 35)

Varien_Object
   |
   --Mage_Core_Model_Abstract
      |
      --Mage_Eav_Model_Entity_Attribute_Abstract
         |
         --Mage_Eav_Model_Entity_Attribute
Direct descendents
Class Description
Mage_Catalog_Model_Entity_Attribute Product attribute extension with event dispatching
Mage_Catalog_Model_Resource_Eav_Attribute Catalog attribute model
Mage_Customer_Model_Attribute Customer attribute model
Class Constant Summary
CACHE_TAG = 'EAV_ATTRIBUTE'
Variable Summary
mixed $_cacheTag
string $_eventObject
string $_eventPrefix
Method Summary
void deleteEntity ()
string getBackendTypeByInput (string $type)
string getDefaultValueByInput (string $type)
string getStoreLabel ()
array getStoreLabels ()
void _afterSave ()
void _beforeDelete ()
void _beforeSave ()
Variables
mixed $_cacheTag = 'EAV_ATTRIBUTE' (line 54)
  • access: protected

Redefinition of:
Mage_Core_Model_Abstract::$_cacheTag
Model cache tag for clear cache in after save and after delete
string $_eventObject = 'attribute' (line 51)

Parameter name in event

In observe method you can use $observer->getEvent()->getAttribute() in this case

  • access: protected

Redefinition of:
Mage_Core_Model_Abstract::$_eventObject
Parameter name in event

Redefined in descendants as:
string $_eventPrefix = 'eav_entity_attribute' (line 42)

Prefix of model events names

  • access: protected

Redefinition of:
Mage_Core_Model_Abstract::$_eventPrefix
Prefix of model events names

Redefined in descendants as:

Inherited Variables

Inherited from Mage_Eav_Model_Entity_Attribute_Abstract

Mage_Eav_Model_Entity_Attribute_Abstract::$_attributeIdCache
Mage_Eav_Model_Entity_Attribute_Abstract::$_backend
Mage_Eav_Model_Entity_Attribute_Abstract::$_dataTable
Mage_Eav_Model_Entity_Attribute_Abstract::$_entity
Mage_Eav_Model_Entity_Attribute_Abstract::$_frontend
Mage_Eav_Model_Entity_Attribute_Abstract::$_name
Mage_Eav_Model_Entity_Attribute_Abstract::$_source

Inherited from Mage_Core_Model_Abstract

Mage_Core_Model_Abstract::$_dataSaveAllowed
Mage_Core_Model_Abstract::$_isObjectNew
Mage_Core_Model_Abstract::$_resource
Mage_Core_Model_Abstract::$_resourceCollectionName
Mage_Core_Model_Abstract::$_resourceName
Methods
deleteEntity (line 91)
  • access: public
void deleteEntity ()
getAttributeCodesByFrontendType (line 251)
  • access: public
void getAttributeCodesByFrontendType ( $type)
  • $type
getBackendTypeByInput (line 172)

Detect backend storage type using frontend input type

  • return: backend_type field value
  • access: public
string getBackendTypeByInput (string $type)
  • string $type: frontend_input field value
getDefaultValueByInput (line 212)

Detect default value using frontend input type

  • return: default_value field value
  • access: public
string getDefaultValueByInput (string $type)
  • string $type: frontend_input field name
getStoreLabel (line 274)

Return store label of attribute

  • access: public
string getStoreLabel ()
getStoreLabels (line 261)

Return array of labels of stores

  • access: public
array getStoreLabels ()
_afterSave (line 151)
  • access: protected
void _afterSave ()

Redefinition of:
Mage_Core_Model_Abstract::_afterSave()
Processing object after save data

Redefined in descendants as:
_beforeDelete (line 158)
  • access: protected
void _beforeDelete ()

Redefinition of:
Mage_Core_Model_Abstract::_beforeDelete()
Processing object before delete data

Redefined in descendants as:
_beforeSave (line 96)
  • access: protected
void _beforeSave ()

Redefinition of:
Mage_Core_Model_Abstract::_beforeSave()
Processing object before save data

Redefined in descendants as:
_getDefaultBackendModel (line 56)
  • access: protected
void _getDefaultBackendModel ()

Redefinition of:
Mage_Eav_Model_Entity_Attribute_Abstract::_getDefaultBackendModel()
_getDefaultFrontendModel (line 77)
  • access: protected
void _getDefaultFrontendModel ()

Redefinition of:
Mage_Eav_Model_Entity_Attribute_Abstract::_getDefaultFrontendModel()
_getDefaultSourceModel (line 82)
  • access: protected
void _getDefaultSourceModel ()

Redefinition of:
Mage_Eav_Model_Entity_Attribute_Abstract::_getDefaultSourceModel()

Redefined in descendants as:

Inherited Methods

Inherited From Mage_Eav_Model_Entity_Attribute_Abstract

Mage_Eav_Model_Entity_Attribute_Abstract::getAlias()
Mage_Eav_Model_Entity_Attribute_Abstract::getAttributeCode()
Mage_Eav_Model_Entity_Attribute_Abstract::getAttributeId()
Mage_Eav_Model_Entity_Attribute_Abstract::getAttributeModel()
Mage_Eav_Model_Entity_Attribute_Abstract::getAttributeSetId()
Mage_Eav_Model_Entity_Attribute_Abstract::getBackend()
Mage_Eav_Model_Entity_Attribute_Abstract::getBackendModel()
Mage_Eav_Model_Entity_Attribute_Abstract::getBackendTable()
Mage_Eav_Model_Entity_Attribute_Abstract::getBackendType()
Mage_Eav_Model_Entity_Attribute_Abstract::getConfig()
Mage_Eav_Model_Entity_Attribute_Abstract::getDefaultValue()
Mage_Eav_Model_Entity_Attribute_Abstract::getEntity()
Mage_Eav_Model_Entity_Attribute_Abstract::getEntityIdField()
Mage_Eav_Model_Entity_Attribute_Abstract::getEntityType()
Mage_Eav_Model_Entity_Attribute_Abstract::getEntityTypeId()
Mage_Eav_Model_Entity_Attribute_Abstract::getFlatColumns()
Mage_Eav_Model_Entity_Attribute_Abstract::getFlatIndexes()
Mage_Eav_Model_Entity_Attribute_Abstract::getFlatUpdateSelect()
Mage_Eav_Model_Entity_Attribute_Abstract::getFrontend()
Mage_Eav_Model_Entity_Attribute_Abstract::getIdByCode()
Mage_Eav_Model_Entity_Attribute_Abstract::getIsGlobal()
Mage_Eav_Model_Entity_Attribute_Abstract::getIsVisibleOnFront()
Mage_Eav_Model_Entity_Attribute_Abstract::getName()
Mage_Eav_Model_Entity_Attribute_Abstract::getSource()
Mage_Eav_Model_Entity_Attribute_Abstract::isInGroup()
Mage_Eav_Model_Entity_Attribute_Abstract::isInSet()
Mage_Eav_Model_Entity_Attribute_Abstract::isStatic()
Mage_Eav_Model_Entity_Attribute_Abstract::isValueEmpty()
Mage_Eav_Model_Entity_Attribute_Abstract::loadByCode()
Mage_Eav_Model_Entity_Attribute_Abstract::setAttributeCode()
Mage_Eav_Model_Entity_Attribute_Abstract::setAttributeId()
Mage_Eav_Model_Entity_Attribute_Abstract::setAttributeModel()
Mage_Eav_Model_Entity_Attribute_Abstract::setAttributeSetId()
Mage_Eav_Model_Entity_Attribute_Abstract::setBackendModel()
Mage_Eav_Model_Entity_Attribute_Abstract::setBackendTable()
Mage_Eav_Model_Entity_Attribute_Abstract::setBackendType()
Mage_Eav_Model_Entity_Attribute_Abstract::setEntity()
Mage_Eav_Model_Entity_Attribute_Abstract::setEntityType()
Mage_Eav_Model_Entity_Attribute_Abstract::setEntityTypeId()
Mage_Eav_Model_Entity_Attribute_Abstract::setName()
Mage_Eav_Model_Entity_Attribute_Abstract::usesSource()
Mage_Eav_Model_Entity_Attribute_Abstract::_construct()
Mage_Eav_Model_Entity_Attribute_Abstract::_getDefaultBackendModel()
Mage_Eav_Model_Entity_Attribute_Abstract::_getDefaultFrontendModel()
Mage_Eav_Model_Entity_Attribute_Abstract::_getDefaultSourceModel()

Inherited From Mage_Core_Model_Abstract

Mage_Core_Model_Abstract::afterCommitCallback()
Mage_Core_Model_Abstract::afterLoad()
Mage_Core_Model_Abstract::cleanModelCache()
Mage_Core_Model_Abstract::clearInstance()
Mage_Core_Model_Abstract::delete()
Mage_Core_Model_Abstract::getCacheIdTags()
Mage_Core_Model_Abstract::getCacheTags()
Mage_Core_Model_Abstract::getCollection()
Mage_Core_Model_Abstract::getEntityId()
Mage_Core_Model_Abstract::getId()
Mage_Core_Model_Abstract::getIdFieldName()
Mage_Core_Model_Abstract::getResource()
Mage_Core_Model_Abstract::getResourceCollection()
Mage_Core_Model_Abstract::getResourceName()
Mage_Core_Model_Abstract::isObjectNew()
Mage_Core_Model_Abstract::load()
Mage_Core_Model_Abstract::save()
Mage_Core_Model_Abstract::setId()
Mage_Core_Model_Abstract::_afterDelete()
Mage_Core_Model_Abstract::_afterDeleteCommit()
Mage_Core_Model_Abstract::_afterLoad()
Mage_Core_Model_Abstract::_afterSave()
Mage_Core_Model_Abstract::_afterSaveCommit()
Mage_Core_Model_Abstract::_beforeDelete()
Mage_Core_Model_Abstract::_beforeLoad()
Mage_Core_Model_Abstract::_beforeSave()
Mage_Core_Model_Abstract::_clearData()
Mage_Core_Model_Abstract::_clearReferences()
Mage_Core_Model_Abstract::_getEventData()
Mage_Core_Model_Abstract::_getResource()
Mage_Core_Model_Abstract::_hasModelChanged()
Mage_Core_Model_Abstract::_init()
Mage_Core_Model_Abstract::_protectFromNonAdmin()
Mage_Core_Model_Abstract::_setResourceModel()
Class Constants
CACHE_TAG = 'EAV_ATTRIBUTE' (line 53)

Inherited Constants

Inherited from Mage_Eav_Model_Entity_Attribute_Abstract

Mage_Eav_Model_Entity_Attribute_Abstract::TYPE_STATIC

Documentation generated on Fri, 11 Feb 2011 16:56:46 +0200 by phpDocumentor 1.4.3