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_Abstract

Entity/Attribute/Model - entity abstract

Mage_Core_Model_Resource_Abstract
Extended by Mage_Eav_Model_Entity_Abstract implements Mage_Eav_Model_Entity_Interface

Direct known subclasses

Mage_Catalog_Model_Resource_Abstract, Mage_Customer_Model_Resource_Address, Mage_Sales_Model_Entity_Order_Invoice_Comment, Mage_Sales_Model_Entity_Order_Invoice_Item, Mage_Sales_Model_Entity_Order_Item, Mage_Sales_Model_Entity_Order_Payment, Mage_Sales_Model_Entity_Order_Shipment, Mage_Sales_Model_Entity_Order_Shipment_Comment, Mage_Sales_Model_Entity_Order_Shipment_Item, Mage_Sales_Model_Entity_Order_Shipment_Track, Mage_Sales_Model_Entity_Order_Status_History, Mage_Sales_Model_Entity_Quote, Mage_Customer_Model_Resource_Customer, Mage_Sales_Model_Entity_Quote_Address, Mage_Sales_Model_Entity_Quote_Address_Item, Mage_Sales_Model_Entity_Quote_Address_Rate, Mage_Sales_Model_Entity_Quote_Item, Mage_Sales_Model_Entity_Quote_Payment, Mage_Eav_Model_Entity, Mage_Sales_Model_Entity_Order, Mage_Sales_Model_Entity_Order_Address, Mage_Sales_Model_Entity_Order_Creditmemo, Mage_Sales_Model_Entity_Order_Creditmemo_Comment, Mage_Sales_Model_Entity_Order_Creditmemo_Item, Mage_Sales_Model_Entity_Order_Invoice

Indirect known subclasses

Mage_Catalog_Model_Resource_Category, Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract, Mage_Catalog_Model_Resource_Eav_Mysql4_Category, Mage_Catalog_Model_Resource_Eav_Mysql4_Product, Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Action, Mage_Catalog_Model_Resource_Product, Mage_Catalog_Model_Resource_Product_Action, Mage_Customer_Model_Entity_Address, Mage_Customer_Model_Entity_Customer, Mage_ImportExport_Model_Import_Proxy_Product_Resource
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/Abstract.php
Methods summary
public Mage_Eav_Model_Entity_Abstract
# setConnection( Zend_Db_Adapter_Abstract|string $read, Zend_Db_Adapter_Abstract|string|null $write = null )

Set connections for entity operations

Set connections for entity operations

Parameters

$read
Zend_Db_Adapter_Abstract|string
$read
$write
Zend_Db_Adapter_Abstract|string|null
$write

Returns

Mage_Eav_Model_Entity_Abstract
protected
# _construct( )

Resource initialization

Resource initialization

protected Varien_Db_Adapter_Interface
# _getReadAdapter( )

Retrieve connection for read data

Retrieve connection for read data

Returns

Varien_Db_Adapter_Interface
protected Varien_Db_Adapter_Interface
# _getWriteAdapter( )

Retrieve connection for write data

Retrieve connection for write data

Returns

Varien_Db_Adapter_Interface
public Varien_Db_Adapter_Interface
# getReadConnection( )

Retrieve read DB connection

Retrieve read DB connection

Returns

Varien_Db_Adapter_Interface
public Varien_Db_Adapter_Interface
# getWriteConnection( )

Retrieve write DB connection

Retrieve write DB connection

Returns

Varien_Db_Adapter_Interface
public string
# getIdFieldName( )

For compatibility with Mage_Core_Model_Abstract

For compatibility with Mage_Core_Model_Abstract

Returns

string
public string
# getTable( string $alias )

Retreive table name

Retreive table name

Parameters

$alias
string
$alias

Returns

string
public Mage_Eav_Model_Entity_Abstract
# setType( string|Mage_Eav_Model_Entity_Type $type )

Set configuration for the entity

Set configuration for the entity

Accepts config node or name of entity type

Parameters

$type
string|Mage_Eav_Model_Entity_Type
$type

Returns

Mage_Eav_Model_Entity_Abstract
public Mage_Eav_Model_Entity_Type
# getEntityType( )

Retrieve current entity config

Retrieve current entity config

Returns

Mage_Eav_Model_Entity_Type
public string
# getType( )

Get entity type name

Get entity type name

Returns

string
public integer
# getTypeId( )

Get entity type id

Get entity type id

Returns

integer
public Mage_Eav_Model_Entity_Abstract
# unsetAttributes( array|string|null $attributes = null )

Unset attributes

Unset attributes

If NULL or not supplied removes configuration of all attributes If string - removes only one, if array - all specified

Parameters

$attributes
array|string|null
$attributes

Returns

Mage_Eav_Model_Entity_Abstract
public Mage_Eav_Model_Entity_Attribute_Abstract
# getAttribute( string|integer|Mage_Core_Model_Config_Element $attribute )

Retrieve attribute instance by name, id or config node

Retrieve attribute instance by name, id or config node

This will add the attribute configuration to entity's attributes cache

If attribute is not found false is returned

Parameters

$attribute
string|integer|Mage_Core_Model_Config_Element
$attribute

Returns

Mage_Eav_Model_Entity_Attribute_Abstract
|| false
protected Mage_Eav_Model_Entity_Attribute
# _getDefaultAttribute( string $attributeCode )

Return default static virtual attribute that doesn't exists in EAV attributes

Return default static virtual attribute that doesn't exists in EAV attributes

Parameters

$attributeCode
string
$attributeCode

Returns

Mage_Eav_Model_Entity_Attribute
public Mage_Eav_Model_Entity_Abstract
# addAttribute( Mage_Eav_Model_Entity_Attribute_Abstract $attribute )

Adding attribute to entity

Adding attribute to entity

Parameters

$attribute
Mage_Eav_Model_Entity_Attribute_Abstract
$attribute

Returns

Mage_Eav_Model_Entity_Abstract
public boolean
# isPartialLoad( boolean $flag = null )

Retreive partial load flag

Retreive partial load flag

Parameters

$flag
boolean
$flag

Returns

boolean
public boolean
# isPartialSave( boolean $flag = null )

Retreive partial save flag

Retreive partial save flag

Parameters

$flag
boolean
$flag

Returns

boolean
public Mage_Eav_Model_Entity_Attribute_Abstract
# loadAllAttributes( mixed $object = null )

Retrieve configuration for all attributes

Retrieve configuration for all attributes

Returns

Mage_Eav_Model_Entity_Attribute_Abstract
public array
# getSortedAttributes( integer $setId = null )

Retrieve sorted attributes

Retrieve sorted attributes

Parameters

$setId
integer
$setId

Returns

array
public integer
# attributesCompare( Mage_Eav_Model_Entity_Attribute $attribute1, Mage_Eav_Model_Entity_Attribute $attribute2 )

Compare attributes

Compare attributes

Parameters

$attribute1
Mage_Eav_Model_Entity_Attribute
$attribute1
$attribute2
Mage_Eav_Model_Entity_Attribute
$attribute2

Returns

integer
protected boolean
# _isApplicableAttribute( Varien_Object $object, Mage_Eav_Model_Entity_Attribute_Abstract $attribute )

Check whether the attribute is Applicable to the object

Check whether the attribute is Applicable to the object

Parameters

$object
Varien_Object
$object
$attribute
Mage_Eav_Model_Entity_Attribute_Abstract
$attribute

Returns

boolean
public array
# walkAttributes( string $partMethod, array $args = array() )

Walk through the attributes and run method with optional arguments

Walk through the attributes and run method with optional arguments

Returns array with results for each attribute

if $method is in format "part/method" will run method on specified part for example: $this->walkAttributes('backend/validate');

Parameters

$partMethod
string
$method
$args
array
$args

Returns

array
protected boolean
# _isCallableAttributeInstance( Mage_Eav_Model_Entity_Attribute_Abstract|Mage_Eav_Model_Entity_Attribute_Backend_Abstract|Mage_Eav_Model_Entity_Attribute_Frontend_Abstract|Mage_Eav_Model_Entity_Attribute_Source_Abstract $instance, string $method, array $args )

Check whether attribute instance (attribute, backend, frontend or source) has method and applicable

Check whether attribute instance (attribute, backend, frontend or source) has method and applicable

Parameters

$instance
Mage_Eav_Model_Entity_Attribute_Abstract|Mage_Eav_Model_Entity_Attribute_Backend_Abstract|Mage_Eav_Model_Entity_Attribute_Frontend_Abstract|Mage_Eav_Model_Entity_Attribute_Source_Abstract
$instance
$method
string
$method
$args
array
$args array of arguments

Returns

boolean
public array
# getAttributesByCode( )

Get attributes by name array

Get attributes by name array

Returns

array
public array
# getAttributesById( )

Get attributes by id array

Get attributes by id array

Returns

array
public array
# getAttributesByTable( )

Get attributes by table and name array

Get attributes by table and name array

Returns

array
public string
# getEntityTable( )

Get entity table name

Get entity table name

Returns

string
public string
# getEntityIdField( )

Get entity id field name in entity table

Get entity id field name in entity table

Returns

string
public string
# getValueEntityIdField( )

Get default entity id field name in attribute values tables

Get default entity id field name in attribute values tables

Returns

string
public string
# getValueTablePrefix( )

Get prefix for value tables

Get prefix for value tables

Returns

string
public string
# getEntityTablePrefix( )

Get entity table prefix for value

Get entity table prefix for value

Returns

string
public boolean
# isAttributeStatic( integer|string|Mage_Eav_Model_Entity_Attribute_Abstract $attribute )

Check whether the attribute is a real field in entity table

Check whether the attribute is a real field in entity table

Parameters

$attribute
integer|string|Mage_Eav_Model_Entity_Attribute_Abstract
$attribute

Returns

boolean

See

Mage_Eav_Model_Entity_Abstract::getAttribute for $attribute format
public boolean|array
# validate( Varien_Object $object )

Validate all object's attributes against configuration

Validate all object's attributes against configuration

Parameters

$object
Varien_Object
$object

Returns

boolean|array

Throws

Mage_Eav_Model_Entity_Attribute_Exception
public Mage_Eav_Model_Entity_Abstract
# setNewIncrementId( Varien_Object $object )

Set new increment id to object

Set new increment id to object

Parameters

$object
Varien_Object
$object

Returns

Mage_Eav_Model_Entity_Abstract
public boolean
# checkAttributeUniqueValue( Mage_Eav_Model_Entity_Attribute_Abstract $attribute, Varien_Object $object )

Check attribute unique value

Check attribute unique value

Parameters

$attribute
Mage_Eav_Model_Entity_Attribute_Abstract
$attribute
$object
Varien_Object
$object

Returns

boolean
public string
# getDefaultAttributeSourceModel( )

Retreive default source model

Retreive default source model

Returns

string
public Mage_Eav_Model_Entity_Abstract
# load( Mage_Core_Model_Abstract $object, integer $entityId, array|null $attributes = array() )

Load entity's attributes into the object

Load entity's attributes into the object

Parameters

$object
Mage_Core_Model_Abstract
$object
$entityId
integer
$entityId
$attributes
array|null
$attributes

Returns

Mage_Eav_Model_Entity_Abstract
protected Mage_Eav_Model_Entity_Abstract
# _loadModelAttributes( Mage_Core_Model_Abstract $object )

Load model attributes data

Load model attributes data

Parameters

$object
Mage_Core_Model_Abstract
$object

Returns

Mage_Eav_Model_Entity_Abstract
protected Zend_Db_Select
# _prepareLoadSelect( array $selects )

Prepare select object for loading entity attributes values

Prepare select object for loading entity attributes values

Parameters

$selects
array
$selects

Returns

Zend_Db_Select
protected Zend_Db_Select
# _getLoadRowSelect( Varien_Object $object, mixed $rowId )

Retrieve select object for loading base entity row

Retrieve select object for loading base entity row

Parameters

$object
Varien_Object
$object
$rowId
mixed
$rowId

Returns

Zend_Db_Select
protected Zend_Db_Select
# _getLoadAttributesSelect( Varien_Object $object, mixed $table )

Retrieve select object for loading entity attributes values

Retrieve select object for loading entity attributes values

Parameters

$object
Varien_Object
$object
$table
mixed
$rowId

Returns

Zend_Db_Select
protected Varien_Db_Select
# _addLoadAttributesSelectFields( Varien_Db_Select $select, string $table, string $type )

Adds Columns prepared for union

Adds Columns prepared for union

Parameters

$select
Varien_Db_Select
$select
$table
string
$table
$type
string
$type

Returns

Varien_Db_Select
protected Mage_Eav_Model_Entity_Abstract
# _setAttributeValue( Varien_Object $object, array $valueRow )

Initialize attribute value for object

Initialize attribute value for object

Parameters

$object
Varien_Object
$object
$valueRow
array
$valueRow

Returns

Mage_Eav_Model_Entity_Abstract
public Mage_Eav_Model_Entity_Abstract
# save( Varien_Object $object )

Save entity's attributes into the object's resource

Save entity's attributes into the object's resource

Parameters

$object
Varien_Object
$object

Returns

Mage_Eav_Model_Entity_Abstract
protected Varien_Object
# _getOrigObject( Varien_Object $object )

Retrieve Object instance with original data

Retrieve Object instance with original data

Parameters

$object
Varien_Object
$object

Returns

Varien_Object
protected array
# _collectSaveData( Varien_Object $newObject )

Prepare entity object data for save

Prepare entity object data for save

result array structure: array ( 'newObject', 'entityRow', 'insert', 'update', 'delete' )

Parameters

$newObject
Varien_Object
$newObject

Returns

array
protected boolean
# _canUpdateAttribute( Mage_Eav_Model_Entity_Attribute_Abstract $attribute, mixed $v, array & $origData )

Return if attribute exists in original data array.

Return if attribute exists in original data array.

Parameters

$attribute
Mage_Eav_Model_Entity_Attribute_Abstract
$attribute
$v
mixed
$value New value of the attribute. Can be used in subclasses.
$origData
array
$origData

Returns

boolean
protected array
# _getStaticFieldProperties( string $field )

Retrieve static field properties

Retrieve static field properties

Parameters

$field
string
$field

Returns

array
protected mixed
# _prepareStaticValue( string $key, mixed $value )

Prepare static value for save

Prepare static value for save

Parameters

$key
string
$key
$value
mixed
$value

Returns

mixed
protected Mage_Eav_Model_Entity_Abstract
# _processSaveData( array $saveData )

Save object collected data

Save object collected data

Parameters

$saveData
array
$saveData array('newObject', 'entityRow', 'insert', 'update', 'delete')

Returns

Mage_Eav_Model_Entity_Abstract
protected Mage_Eav_Model_Entity_Abstract
# _insertAttribute( Varien_Object $object, Mage_Eav_Model_Entity_Attribute_Abstract $attribute, mixed $value )

Insert entity attribute value

Insert entity attribute value

Parameters

$object
Varien_Object
$object
$attribute
Mage_Eav_Model_Entity_Attribute_Abstract
$attribute
$value
mixed
$value

Returns

Mage_Eav_Model_Entity_Abstract
protected Mage_Eav_Model_Entity_Abstract
# _updateAttribute( Varien_Object $object, Mage_Eav_Model_Entity_Attribute_Abstract $attribute, mixed $valueId, mixed $value )

Update entity attribute value

Update entity attribute value

Parameters

$object
Varien_Object
$object
$attribute
Mage_Eav_Model_Entity_Attribute_Abstract
$attribute
$valueId
mixed
$valueId
$value
mixed
$value

Returns

Mage_Eav_Model_Entity_Abstract
protected Mage_Eav_Model_Entity_Abstract
# _saveAttribute( Mage_Core_Model_Abstract $object, Mage_Eav_Model_Entity_Attribute_Abstract $attribute, mixed $value )

Save entity attribute value

Save entity attribute value

Collect for mass save

Parameters

$object
Mage_Core_Model_Abstract
$object
$attribute
Mage_Eav_Model_Entity_Attribute_Abstract
$attribute
$value
mixed
$value

Returns

Mage_Eav_Model_Entity_Abstract
protected Mage_Eav_Model_Entity_Abstract
# _processAttributeValues( )

Save and detele collected attribute values

Save and detele collected attribute values

Returns

Mage_Eav_Model_Entity_Abstract
protected mixed
# _prepareValueForSave( mixed $value, Mage_Eav_Model_Entity_Attribute_Abstract $attribute )

Prepare value for save

Prepare value for save

Parameters

$value
mixed
$value
$attribute
Mage_Eav_Model_Entity_Attribute_Abstract
$attribute

Returns

mixed
protected Varien_Object
# _deleteAttributes( Varien_Object $object, string $table, array $info )

Delete entity attribute values

Delete entity attribute values

Parameters

$object
Varien_Object
$object
$table
string
$table
$info
array
$info

Returns

Varien_Object
public Mage_Eav_Model_Entity_Abstract
# saveAttribute( Varien_Object $object, string $attributeCode )

Save attribute

Save attribute

Parameters

$object
Varien_Object
$object
$attributeCode
string
$attributeCode

Returns

Mage_Eav_Model_Entity_Abstract
public Mage_Eav_Model_Entity_Abstract
# delete( mixed $object )

Delete entity using current object's data

Delete entity using current object's data

Returns

Mage_Eav_Model_Entity_Abstract
protected Mage_Eav_Model_Entity_Abstract
# _afterLoad( Varien_Object $object )

After Load Entity process

After Load Entity process

Parameters

$object
Varien_Object
$object

Returns

Mage_Eav_Model_Entity_Abstract
protected Mage_Eav_Model_Entity_Abstract
# _beforeSave( Varien_Object $object )

Before delete Entity process

Before delete Entity process

Parameters

$object
Varien_Object
$object

Returns

Mage_Eav_Model_Entity_Abstract
protected Mage_Eav_Model_Entity_Abstract
# _afterSave( Varien_Object $object )

After Save Entity process

After Save Entity process

Parameters

$object
Varien_Object
$object

Returns

Mage_Eav_Model_Entity_Abstract
protected Mage_Eav_Model_Entity_Abstract
# _beforeDelete( Varien_Object $object )

Before Delete Entity process

Before Delete Entity process

Parameters

$object
Varien_Object
$object

Returns

Mage_Eav_Model_Entity_Abstract
protected Mage_Eav_Model_Entity_Abstract
# _afterDelete( Varien_Object $object )

After delete entity process

After delete entity process

Parameters

$object
Varien_Object
$object

Returns

Mage_Eav_Model_Entity_Abstract
protected string
# _getDefaultAttributeModel( )

Retrieve Default attribute model

Retrieve Default attribute model

Returns

string
protected array
# _getDefaultAttributes( )

Retrieve default entity attributes

Retrieve default entity attributes

Returns

array
public array
# getDefaultAttributes( )

Retrieve default entity static attributes

Retrieve default entity static attributes

Returns

array
protected boolean
# _isAttributeValueEmpty( Mage_Eav_Model_Entity_Attribute_Abstract $attribute, mixed $value )

Check is attribute value empty

Check is attribute value empty

Parameters

$attribute
Mage_Eav_Model_Entity_Attribute_Abstract
$attribute
$value
mixed
$value

Returns

boolean
Methods inherited from Mage_Core_Model_Resource_Abstract
__construct(), _prepareDataForTable(), _prepareTableValueForSave(), _serializeField(), _unserializeField(), addCommitCallback(), beginTransaction(), commit(), formatDate(), mktime(), rollBack()
Properties summary
protected Varien_Db_Adapter_Pdo_Mysql $_read
#

Read connection

Read connection

protected Varien_Db_Adapter_Pdo_Mysql $_write
#

Write connection

Write connection

protected Mage_Eav_Model_Entity_Type $_type
#

Entity type configuration

Entity type configuration

protected array $_attributesById array()
#

Attributes array by attribute id

Attributes array by attribute id

protected unknown_type $_attributesByCode array()
#

Attributes array by attribute name

Attributes array by attribute name

protected array $_attributesByTable array()
#

2-dimentional array by table name and attribute name

2-dimentional array by table name and attribute name

protected array $_staticAttributes array()
#

Attributes that are static fields in entity table

Attributes that are static fields in entity table

protected static array $_defaultAttributes array()
#

Default Attributes that are static

Default Attributes that are static

protected string $_entityTable
#

Entity table

Entity table

protected array $_describeTable array()
#

Describe data for tables

Describe data for tables

protected string $_entityIdField
#

Entity table identification field name

Entity table identification field name

protected string $_valueEntityIdField
#

Entity values table identification field name

Entity values table identification field name

protected string $_valueTablePrefix
#

Entity value table prefix

Entity value table prefix

protected mixed $_entityTablePrefix
#
protected boolean $_isPartialLoad false
#

Partial load flag

Partial load flag

protected boolean $_isPartialSave false
#

Partial save flag

Partial save flag

protected integer $_sortingSetId null
#

Attribute set id which used for get sorted attributes

Attribute set id which used for get sorted attributes

protected array $_attributeValuesToDelete array()
#

Entity attribute values per backend table to delete

Entity attribute values per backend table to delete

protected array $_attributeValuesToSave array()
#

Entity attribute values per backend table to save

Entity attribute values per backend table to save

protected static array $_attributeBackendTables array()
#

Array of describe attribute backend tables The table name as key

Array of describe attribute backend tables The table name as key

Properties inherited from Mage_Core_Model_Resource_Abstract
$_commitCallbacks
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0