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_Entity_Attribute_Abstract

Entity/Attribute/Model - attribute abstract

Varien_Object
Extended by Mage_Core_Model_Abstract
Extended by Mage_Eav_Model_Entity_Attribute_Abstract implements Mage_Eav_Model_Entity_Attribute_Interface

Direct known subclasses

Mage_Eav_Model_Entity_Attribute

Indirect known subclasses

Mage_Catalog_Model_Entity_Attribute, Mage_Catalog_Model_Resource_Eav_Attribute, Mage_Customer_Model_Attribute, Mage_Eav_Model_Attribute
Abstract
Package: Mage\Eav
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php
Methods summary
protected
# _construct( )

Initialize resource model

Initialize resource model

public Mage_Eav_Model_Entity_Attribute_Abstract
# loadByCode( mixed $entityType, string $code )

Load attribute data by code

Load attribute data by code

Parameters

$entityType
mixed
$entityType
$code
string
$code

Returns

Mage_Eav_Model_Entity_Attribute_Abstract
public Mage_Eav_Model_Entity_Attribute_Abstract
# getConfig( )

Retrieve attribute configuration (deprecated)

Retrieve attribute configuration (deprecated)

Returns

Mage_Eav_Model_Entity_Attribute_Abstract
public string
# getName( )

Get attribute name

Get attribute name

Returns

string
public Mage_Eav_Model_Entity_Attribute_Abstract
# setAttributeId( integer $data )

Specify attribute identifier

Specify attribute identifier

Parameters

$data
integer
$data

Returns

Mage_Eav_Model_Entity_Attribute_Abstract
public integer
# getAttributeId( )

Get attribute identifuer

Get attribute identifuer

Returns

integer
| null
public
# setAttributeCode( mixed $data )
public
# getAttributeCode( )
public
# setAttributeModel( mixed $data )
public
# getAttributeModel( )
public
# setBackendType( mixed $data )
public
# getBackendType( )
public
# setBackendModel( mixed $data )
public
# getBackendModel( )
public
# setBackendTable( mixed $data )
public
# getIsVisibleOnFront( )
public
# getDefaultValue( )
public
# getAttributeSetId( )
public
# setAttributeSetId( mixed $id )
public
# getEntityTypeId( )
public
# setEntityTypeId( mixed $id )
public
# setEntityType( mixed $type )
public string
# getAlias( Mage_Eav_Model_Entity_Abstract $entity = null )

Get attribute alias as "entity_type/attribute_code"

Get attribute alias as "entity_type/attribute_code"

Parameters

$entity
Mage_Eav_Model_Entity_Abstract
$entity exclude this entity

Returns

string
public Mage_Eav_Model_Entity_Attribute_Abstract
# setName( string $name )

Set attribute name

Set attribute name

Parameters

$name
string
$name

Returns

Mage_Eav_Model_Entity_Attribute_Abstract
public string
# getEntityType( )

Retreive entity type

Retreive entity type

Returns

string
public Mage_Eav_Model_Entity_Attribute_Abstract
# setEntity( Mage_Eav_Model_Entity_Abstract $entity )

Set attribute entity instance

Set attribute entity instance

Parameters

$entity
Mage_Eav_Model_Entity_Abstract
$entity

Returns

Mage_Eav_Model_Entity_Attribute_Abstract
public Mage_Eav_Model_Entity_Abstract
# getEntity( )

Retrieve entity instance

Retrieve entity instance

Returns

Mage_Eav_Model_Entity_Abstract
public string
# getEntityIdField( )

Retreive entity type

Retreive entity type

Returns

string
public Mage_Eav_Model_Entity_Attribute_Backend_Abstract
# getBackend( )

Retrieve backend instance

Retrieve backend instance

Returns

Mage_Eav_Model_Entity_Attribute_Backend_Abstract
public Mage_Eav_Model_Entity_Attribute_Frontend_Abstract
# getFrontend( )

Retrieve frontend instance

Retrieve frontend instance

Returns

Mage_Eav_Model_Entity_Attribute_Frontend_Abstract
public Mage_Eav_Model_Entity_Attribute_Source_Abstract
# getSource( )

Retrieve source instance

Retrieve source instance

Returns

Mage_Eav_Model_Entity_Attribute_Source_Abstract
public
# usesSource( )
protected
# _getDefaultBackendModel( )
protected
# _getDefaultFrontendModel( )
protected
# _getDefaultSourceModel( )
public
# isValueEmpty( mixed $value )
public boolean
# isInSet( integer|array $setId )

Check if attribute in specified set

Check if attribute in specified set

Parameters

$setId
integer|array
$setId

Returns

boolean
public boolean
# isInGroup( integer $setId, integer $groupId )

Check if attribute in specified group

Check if attribute in specified group

Parameters

$setId
integer
$setId
$groupId
integer
$groupId

Returns

boolean
public integer
# getIdByCode( string $entityType, string $code )

Return attribute id

Return attribute id

Parameters

$entityType
string
$entityType
$code
string
$code

Returns

integer
public boolean
# isStatic( )

Check if attribute is static

Check if attribute is static

Returns

boolean
public string
# getBackendTable( )

Get attribute backend table name

Get attribute backend table name

Returns

string
public array
# getFlatColumns( )

Retrieve flat columns definition

Retrieve flat columns definition

Returns

array
public array
# _getFlatColumnsDdlDefinition( )

Retrieve flat columns DDL definition

Retrieve flat columns DDL definition

Returns

array
protected array
# _getFlatColumnsOldDefinition( )

Retrieve flat columns definition in old format (before MMDB support) Used in database compatible mode

Retrieve flat columns definition in old format (before MMDB support) Used in database compatible mode

Returns

array
public array
# getFlatIndexes( )

Retrieve index data for flat table

Retrieve index data for flat table

Returns

array
public Varien_Db_Select
# getFlatUpdateSelect( integer $store = null )

Retrieve Select For Flat Attribute update

Retrieve Select For Flat Attribute update

Parameters

$store
integer
$store

Returns

Varien_Db_Select
Methods inherited from Mage_Core_Model_Abstract
_afterDelete(), _afterDeleteCommit(), _afterLoad(), _afterSave(), _beforeDelete(), _beforeLoad(), _beforeSave(), _clearData(), _clearReferences(), _getEventData(), _getResource(), _hasModelChanged(), _init(), _protectFromNonAdmin(), _setResourceModel(), afterCommitCallback(), afterLoad(), cleanModelCache(), clearInstance(), delete(), getCacheIdTags(), getCacheTags(), getCollection(), getEntityId(), getId(), getIdFieldName(), getResource(), getResourceCollection(), getResourceName(), isObjectNew(), load(), save(), setId()
Constants summary
string TYPE_STATIC 'static'
#
Properties summary
protected string $_name
#

Attribute name

Attribute name

protected Mage_Eav_Model_Entity_Abstract $_entity
#

Entity instance

Entity instance

protected Mage_Eav_Model_Entity_Attribute_Backend_Abstract $_backend
#

Backend instance

Backend instance

protected Mage_Eav_Model_Entity_Attribute_Frontend_Abstract $_frontend
#

Frontend instance

Frontend instance

protected Mage_Eav_Model_Entity_Attribute_Source_Abstract $_source
#

Source instance

Source instance

protected array $_attributeIdCache array()
#

Attribute id cache

Attribute id cache

protected string $_dataTable null
#

Attribute data table name

Attribute data table name

Properties inherited from Mage_Core_Model_Abstract
$_cacheTag, $_dataSaveAllowed, $_eventObject, $_eventPrefix, $_isObjectNew, $_resource, $_resourceCollectionName, $_resourceName
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0