Class Mage_Eav_Model_Entity_Abstract
Entity/Attribute/Model - entity abstract
- Mage_Core_Model_Resource_Abstract
-
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_InvoiceIndirect 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_ResourcePackage: 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
public
|
#
setConnection( Zend_Db_Adapter_Abstract|string $read, Zend_Db_Adapter_Abstract|string|null $write = null )
Set connections for entity operations |
protected
|
|
protected
Varien_Db_Adapter_Interface
|
|
protected
Varien_Db_Adapter_Interface
|
|
public
Varien_Db_Adapter_Interface
|
|
public
Varien_Db_Adapter_Interface
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
string
|
|
public
integer
|
|
public
|
|
public
|
#
getAttribute( string|integer|
Retrieve attribute instance by name, id or config node |
protected
|
#
_getDefaultAttribute( string $attributeCode )
Return default static virtual attribute that doesn't exists in EAV attributes |
public
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
public
array
|
|
public
integer
|
#
attributesCompare(
Compare attributes |
protected
boolean
|
#
_isApplicableAttribute( Varien_Object $object,
Check whether the attribute is Applicable to the object |
public
array
|
#
walkAttributes( string $partMethod, array $args = array() )
Walk through the attributes and run method with optional arguments |
protected
boolean
|
#
_isCallableAttributeInstance(
Check whether attribute instance (attribute, backend, frontend or source) has method and applicable |
public
array
|
|
public
array
|
|
public
array
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
boolean
|
#
isAttributeStatic( integer|string|
Check whether the attribute is a real field in entity table |
public
boolean|array
|
|
public
|
|
public
boolean
|
#
checkAttributeUniqueValue(
Check attribute unique value |
public
string
|
|
public
|
#
load(
Load entity's attributes into the object |
protected
|
|
protected
Zend_Db_Select
|
|
protected
Zend_Db_Select
|
#
_getLoadRowSelect( Varien_Object $object, mixed $rowId )
Retrieve select object for loading base entity row |
protected
Zend_Db_Select
|
#
_getLoadAttributesSelect( Varien_Object $object, mixed $table )
Retrieve select object for loading entity attributes values |
protected
Varien_Db_Select
|
#
_addLoadAttributesSelectFields( Varien_Db_Select $select, string $table, string $type )
Adds Columns prepared for union |
protected
|
#
_setAttributeValue( Varien_Object $object, array $valueRow )
Initialize attribute value for object |
public
|
|
protected
Varien_Object
|
|
protected
array
|
|
protected
boolean
|
#
_canUpdateAttribute(
Return if attribute exists in original data array. |
protected
array
|
|
protected
mixed
|
|
protected
|
|
protected
|
#
_insertAttribute( Varien_Object $object,
Insert entity attribute value |
protected
|
#
_updateAttribute( Varien_Object $object,
Update entity attribute value |
protected
|
#
_saveAttribute(
Save entity attribute value |
protected
|
|
protected
mixed
|
#
_prepareValueForSave( mixed $value,
Prepare value for save |
protected
Varien_Object
|
#
_deleteAttributes( Varien_Object $object, string $table, array $info )
Delete entity attribute values |
public
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
string
|
|
protected
array
|
|
public
array
|
|
protected
boolean
|
#
_isAttributeValueEmpty(
Check is attribute value empty |
protected
Varien_Db_Adapter_Pdo_Mysql
|
$_read |
|
#
Read connection |
protected
Varien_Db_Adapter_Pdo_Mysql
|
$_write |
|
#
Write connection |
protected
|
$_type |
|
#
Entity type configuration |
protected
array
|
$_attributesById | array() |
#
Attributes array by attribute id |
protected
unknown_type
|
$_attributesByCode | array() |
#
Attributes array by attribute name |
protected
array
|
$_attributesByTable | array() |
#
2-dimentional array by table name and attribute name |
protected
array
|
$_staticAttributes | array() |
#
Attributes that are static fields in entity table |
protected static
array
|
$_defaultAttributes | array() |
#
Default Attributes that are static |
protected
string
|
$_entityTable |
|
#
Entity table |
protected
array
|
$_describeTable | array() |
#
Describe data for tables |
protected
string
|
$_entityIdField |
|
#
Entity table identification field name |
protected
string
|
$_valueEntityIdField |
|
#
Entity values table identification field name |
protected
string
|
$_valueTablePrefix |
|
#
Entity value table prefix |
protected
mixed
|
$_entityTablePrefix |
|
|
protected
boolean
|
$_isPartialLoad | false |
#
Partial load flag |
protected
boolean
|
$_isPartialSave | false |
#
Partial save flag |
protected
integer
|
$_sortingSetId | null |
#
Attribute set id which used for get sorted attributes |
protected
array
|
$_attributeValuesToDelete | array() |
#
Entity attribute values per backend table to delete |
protected
array
|
$_attributeValuesToSave | array() |
#
Entity attribute values per backend table to save |
protected static
array
|
$_attributeBackendTables | array() |
#
Array of describe attribute backend tables The table name as key |
$_commitCallbacks
|