Class Mage_Eav_Model_Entity_Attribute_Abstract

Description

Implements interfaces:

Entity/Attribute/Model - attribute abstract

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

Varien_Object
   |
   --Mage_Core_Model_Abstract
      |
      --Mage_Eav_Model_Entity_Attribute_Abstract
Direct descendents
Class Description
Mage_Eav_Model_Entity_Attribute EAV Entity attribute model
Class Constant Summary
TYPE_STATIC = 'static'
Variable Summary
Method Summary
string getAlias ([Mage_Eav_Model_Entity_Abstract $entity = null])
void getBackendModel ()
string getBackendTable ()
void getBackendType ()
void getDefaultValue ()
void getEntityType ()
void getEntityTypeId ()
array getFlatColumns ()
array getFlatIndexes ()
Varien_Db_Select getFlatUpdateSelect ([int $store = null])
int getIdByCode (string $entityType, string $code)
integer getIsGlobal ()
string getName ()
boolean isInGroup (int $setId, int $groupId)
boolean isInSet (int|array $setId)
bool isStatic ()
void isValueEmpty ( $value)
Mage_Eav_Model_Entity_Attribute_Abstract loadByCode (mixed $entityType, string $code)
void setAttributeCode ( $data)
void setAttributeModel ( $data)
void setAttributeSetId ( $id)
void setBackendModel ( $data)
void setBackendTable ( $data)
void setBackendType ( $data)
void setEntityType ( $type)
void setEntityTypeId ( $id)
void usesSource ()
void _construct ()
Variables
array $_attributeIdCache = array() (line 80)

Attribute id cache

  • access: protected

Backend instance

  • access: protected
string $_dataTable = null (line 87)

Attribute data table name

  • access: protected
Mage_Eav_Model_Entity_Abstract $_entity (line 52)

Entity instance

  • access: protected

Frontend instance

  • access: protected
string $_name (line 45)

Attribute name

  • access: protected

Source instance

  • access: protected

Inherited Variables

Inherited from Mage_Core_Model_Abstract

Mage_Core_Model_Abstract::$_cacheTag
Mage_Core_Model_Abstract::$_dataSaveAllowed
Mage_Core_Model_Abstract::$_eventObject
Mage_Core_Model_Abstract::$_eventPrefix
Mage_Core_Model_Abstract::$_isObjectNew
Mage_Core_Model_Abstract::$_resource
Mage_Core_Model_Abstract::$_resourceCollectionName
Mage_Core_Model_Abstract::$_resourceName
Methods
getAlias (line 266)

Get attribute alias as "entity_type/attribute_code"

  • access: public
string getAlias ([Mage_Eav_Model_Entity_Abstract $entity = null])
getAttributeCode (line 171)
  • access: public
void getAttributeCode ()
getAttributeId (line 161)

Get attribute identifuer

  • return: | null
  • access: public
int getAttributeId ()
getAttributeModel (line 181)
  • access: public
void getAttributeModel ()
getAttributeSetId (line 221)
  • access: public
void getAttributeSetId ()
getBackend (line 330)

Retrieve backend instance

  • access: public
getBackendModel (line 201)
  • access: public
void getBackendModel ()
getBackendTable (line 487)

Get attribute backend table name

  • access: public
string getBackendTable ()
getBackendType (line 191)
  • access: public
void getBackendType ()
getConfig (line 129)

Retrieve attribute configuration (deprecated)

  • access: public
getDefaultValue (line 216)
  • access: public
void getDefaultValue ()

Redefined in descendants as:
getEntity (line 312)

Retrieve entity instance

  • access: public
getEntityIdField (line 320)
  • access: public
void getEntityIdField ()
getEntityType (line 287)
  • access: public
void getEntityType ()
getEntityTypeId (line 232)
  • access: public
void getEntityTypeId ()
getFlatColumns (line 506)

Retrieve Flat Column(s)

  • access: public
array getFlatColumns ()
getFlatIndexes (line 582)

Retrieve index data for Flat table

  • access: public
array getFlatIndexes ()
getFlatUpdateSelect (line 657)

Retrieve Select For Flat Attribute update

  • access: public
Varien_Db_Select getFlatUpdateSelect ([int $store = null])
  • int $store
getFrontend (line 350)

Retrieve frontend instance

  • access: public
getIdByCode (line 463)

Return attribute id

  • access: public
int getIdByCode (string $entityType, string $code)
  • string $entityType
  • string $code
getIsGlobal (line 255)

Return is attribute global

  • deprecated: moved to catalog attribute model
  • access: public
integer getIsGlobal ()

Redefined in descendants as:
getIsVisibleOnFront (line 211)
  • access: public
void getIsVisibleOnFront ()
getName (line 139)

Get attribute name

  • access: public
string getName ()
getSource (line 367)

Retrieve source instance

  • access: public
isInGroup (line 447)

Check if attribute in specified group

  • access: public
boolean isInGroup (int $setId, int $groupId)
  • int $setId
  • int $groupId
isInSet (line 421)

Check if attribute in specified set

  • access: public
boolean isInSet (int|array $setId)
  • int|array $setId
isStatic (line 477)

Check if attribute is static

  • access: public
bool isStatic ()
isValueEmpty (line 405)
  • access: public
void isValueEmpty ( $value)
  • $value
loadByCode (line 104)

Load attribute data by code

  • access: public
Mage_Eav_Model_Entity_Attribute_Abstract loadByCode (mixed $entityType, string $code)
  • mixed $entityType
  • string $code
setAttributeCode (line 166)
  • access: public
void setAttributeCode ( $data)
  • $data
setAttributeId (line 150)

Specify attribute identifier

  • access: public
Mage_Eav_Model_Entity_Attribute_Abstract setAttributeId (int $data)
  • int $data
setAttributeModel (line 176)
  • access: public
void setAttributeModel ( $data)
  • $data
setAttributeSetId (line 226)
  • access: public
void setAttributeSetId ( $id)
  • $id
setBackendModel (line 196)
  • access: public
void setBackendModel ( $data)
  • $data
setBackendTable (line 206)
  • access: public
void setBackendTable ( $data)
  • $data
setBackendType (line 186)
  • access: public
void setBackendType ( $data)
  • $data
setEntity (line 301)

Set attribute entity instance

  • access: public
setEntityType (line 243)
  • access: public
void setEntityType ( $type)
  • $type
setEntityTypeId (line 237)
  • access: public
void setEntityTypeId ( $id)
  • $id
setName (line 282)

Set attribute name

  • access: public
  • string $name
usesSource (line 384)
  • access: public
void usesSource ()
_construct (line 92)

Initialize resource model

  • access: protected
void _construct ()

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

Redefined in descendants as:
_getDefaultFrontendModel (line 395)
  • access: protected
void _getDefaultFrontendModel ()

Redefined in descendants as:
_getDefaultSourceModel (line 400)
  • access: protected
void _getDefaultSourceModel ()

Redefined in descendants as:

Inherited Methods

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
TYPE_STATIC = 'static' (line 38)

Documentation generated on Fri, 11 Feb 2011 16:54:51 +0200 by phpDocumentor 1.4.3