Class Mage_Catalog_Model_Resource_Eav_Mysql4_Product

Description

Product entity resource model

Located in /Catalog/Model/Resource/Eav/Mysql4/Product.php (line 34)

Mage_Core_Model_Resource_Abstract
   |
   --Mage_Eav_Model_Entity_Abstract
      |
      --Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract
         |
         --Mage_Catalog_Model_Resource_Eav_Mysql4_Product
Direct descendents
Class Description
Mage_ImportExport_Model_Import_Proxy_Product_Resource Import proxy product resource
Variable Summary
Method Summary
Variables
Methods
Constructor __construct (line 42)

Initialize resource

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Product __construct ()

Redefinition of:
Mage_Core_Model_Resource_Abstract::__construct()
canBeShowInCategory (line 474)

Check availability display product in category

  • access: public
bool canBeShowInCategory ( $product, int $categoryId)
  • int $categoryId
  • $product
duplicate (line 490)

Duplicate product store values

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Product duplicate (int $oldId, int $newId)
  • int $oldId
  • int $newId
getAvailableInCategories (line 434)

Retrieve category ids where product is available

  • access: public
array getAvailableInCategories (Mage_Catalog_Model_Product $object)
getCategoryCollection (line 416)

Get collection of product categories

  • access: public
getCategoryIds (line 82)

Retrieve product category identifiers

  • access: public
array getCategoryIds (Mage_Catalog_Model_Product $product)
getDefaultAttributeSourceModel (line 447)

Get default attribute source model

  • access: public
string getDefaultAttributeSourceModel ()

Redefinition of:
Mage_Eav_Model_Entity_Abstract::getDefaultAttributeSourceModel()
Enter description here...
getIdBySku (line 96)

Get product identifier by sku

  • access: public
int|false getIdBySku (string $sku)
  • string $sku
getParentProductIds (line 539)
  • deprecated: after 1.4.2.0
  • access: public
array getParentProductIds ($object $object)
  • $object $object: Mage_Catalog_Model_Product
getProductsSku (line 526)

Get SKU through product identifiers

  • access: public
array getProductsSku ( $productIds)
  • array $productIds
getWebsiteIds (line 68)

Retrieve product website identifiers

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Product getWebsiteIds ($product $product)
  • $product $product
refreshEnabledIndex (line 320)

Refresh index for visibility of enabled product in store if store parameter is null - index will refreshed for all stores if product parameter is null - idex will be refreshed for all products

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Product refreshEnabledIndex ([Mage_Core_Model_Store $store = null], [Mage_Core_Model_Product $product = null])
refreshIndex (line 257)

Refresh Product Enabled Index

  • access: public
validate (line 460)

Validate all object's attributes against configuration

  • todo: implement full validation process with errors returning which are ignoring now
  • access: public
Varien_Object validate (Varien_Object $object)
  • Varien_Object $object

Redefinition of:
Mage_Eav_Model_Entity_Abstract::validate()
Validate all object's attributes against configuration
_afterSave (line 135)

Save data related with product

  • access: protected
  • Varien_Object $product

Redefinition of:
Mage_Eav_Model_Entity_Abstract::_afterSave()
After Save Entity process
_beforeSave (line 107)

Process product data before save

  • access: protected
  • Varien_Object $object

Redefinition of:
Mage_Eav_Model_Entity_Abstract::_beforeSave()
Before delete Entity process
_getDefaultAttributes (line 57)

Default product attributes

  • access: protected
array _getDefaultAttributes ()

Redefinition of:
Mage_Eav_Model_Entity_Abstract::_getDefaultAttributes()
Retrieve default entity attributes
_saveCategories (line 201)

Save product category relations

  • access: protected
_saveWebsiteIds (line 152)

Save product website relations

  • access: protected

Inherited Methods

Inherited From Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract

Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::getAttributeRawValue()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::getDefaultStoreId()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::load()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_canUpdateAttribute()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_collectOrigData()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_deleteAttributes()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_getDefaultAttributeModel()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_getLoadAttributesSelect()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_getOrigObject()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_insertAttribute()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_isApplicableAttribute()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_isAttributeValueEmpty()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_isCallableAttributeInstance()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_prepareLoadSelect()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_prepareValueForSave()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_saveAttributeValue()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_setAttribteValue()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_updateAttribute()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_updateAttributeForStore()

Inherited From Mage_Eav_Model_Entity_Abstract

Mage_Eav_Model_Entity_Abstract::addAttribute()
Mage_Eav_Model_Entity_Abstract::attributesCompare()
Mage_Eav_Model_Entity_Abstract::checkAttributeUniqueValue()
Mage_Eav_Model_Entity_Abstract::delete()
Mage_Eav_Model_Entity_Abstract::getAttribute()
Mage_Eav_Model_Entity_Abstract::getAttributesByCode()
Mage_Eav_Model_Entity_Abstract::getAttributesById()
Mage_Eav_Model_Entity_Abstract::getAttributesByTable()
Mage_Eav_Model_Entity_Abstract::getDefaultAttributes()
Mage_Eav_Model_Entity_Abstract::getDefaultAttributeSourceModel()
Mage_Eav_Model_Entity_Abstract::getEntityIdField()
Mage_Eav_Model_Entity_Abstract::getEntityTable()
Mage_Eav_Model_Entity_Abstract::getEntityType()
Mage_Eav_Model_Entity_Abstract::getIdFieldName()
Mage_Eav_Model_Entity_Abstract::getReadConnection()
Mage_Eav_Model_Entity_Abstract::getSortedAttributes()
Mage_Eav_Model_Entity_Abstract::getTable()
Mage_Eav_Model_Entity_Abstract::getType()
Mage_Eav_Model_Entity_Abstract::getTypeId()
Mage_Eav_Model_Entity_Abstract::getValueEntityIdField()
Mage_Eav_Model_Entity_Abstract::getValueTablePrefix()
Mage_Eav_Model_Entity_Abstract::getWriteConnection()
Mage_Eav_Model_Entity_Abstract::isAttributeStatic()
Mage_Eav_Model_Entity_Abstract::isPartialLoad()
Mage_Eav_Model_Entity_Abstract::isPartialSave()
Mage_Eav_Model_Entity_Abstract::load()
Mage_Eav_Model_Entity_Abstract::loadAllAttributes()
Mage_Eav_Model_Entity_Abstract::save()
Mage_Eav_Model_Entity_Abstract::saveAttribute()
Mage_Eav_Model_Entity_Abstract::setConnection()
Mage_Eav_Model_Entity_Abstract::setNewIncrementId()
Mage_Eav_Model_Entity_Abstract::setType()
Mage_Eav_Model_Entity_Abstract::unsetAttributes()
Mage_Eav_Model_Entity_Abstract::validate()
Mage_Eav_Model_Entity_Abstract::walkAttributes()
Mage_Eav_Model_Entity_Abstract::_afterDelete()
Mage_Eav_Model_Entity_Abstract::_afterLoad()
Mage_Eav_Model_Entity_Abstract::_afterSave()
Mage_Eav_Model_Entity_Abstract::_afterSetConfig()
Mage_Eav_Model_Entity_Abstract::_beforeDelete()
Mage_Eav_Model_Entity_Abstract::_beforeSave()
Mage_Eav_Model_Entity_Abstract::_canUpdateAttribute()
Mage_Eav_Model_Entity_Abstract::_collectSaveData()
Mage_Eav_Model_Entity_Abstract::_construct()
Mage_Eav_Model_Entity_Abstract::_deleteAttributes()
Mage_Eav_Model_Entity_Abstract::_getDefaultAttribute()
Mage_Eav_Model_Entity_Abstract::_getDefaultAttributeModel()
Mage_Eav_Model_Entity_Abstract::_getDefaultAttributes()
Mage_Eav_Model_Entity_Abstract::_getLoadAttributesSelect()
Mage_Eav_Model_Entity_Abstract::_getLoadRowSelect()
Mage_Eav_Model_Entity_Abstract::_getOrigObject()
Mage_Eav_Model_Entity_Abstract::_getReadAdapter()
Mage_Eav_Model_Entity_Abstract::_getStaticFieldProperties()
Mage_Eav_Model_Entity_Abstract::_getWriteAdapter()
Mage_Eav_Model_Entity_Abstract::_insertAttribute()
Mage_Eav_Model_Entity_Abstract::_isApplicableAttribute()
Mage_Eav_Model_Entity_Abstract::_isAttributeValueEmpty()
Mage_Eav_Model_Entity_Abstract::_isCallableAttributeInstance()
Mage_Eav_Model_Entity_Abstract::_prepareLoadSelect()
Mage_Eav_Model_Entity_Abstract::_prepareStaticValue()
Mage_Eav_Model_Entity_Abstract::_prepareValueForSave()
Mage_Eav_Model_Entity_Abstract::_processAttributeValues()
Mage_Eav_Model_Entity_Abstract::_processSaveData()
Mage_Eav_Model_Entity_Abstract::_saveAttribute()
Mage_Eav_Model_Entity_Abstract::_setAttribteValue()
Mage_Eav_Model_Entity_Abstract::_updateAttribute()

Inherited From Mage_Core_Model_Resource_Abstract

Mage_Core_Model_Resource_Abstract::__construct()
Mage_Core_Model_Resource_Abstract::addCommitCallback()
Mage_Core_Model_Resource_Abstract::beginTransaction()
Mage_Core_Model_Resource_Abstract::commit()
Mage_Core_Model_Resource_Abstract::formatDate()
Mage_Core_Model_Resource_Abstract::mktime()
Mage_Core_Model_Resource_Abstract::rollBack()
Mage_Core_Model_Resource_Abstract::_construct()
Mage_Core_Model_Resource_Abstract::_getReadAdapter()
Mage_Core_Model_Resource_Abstract::_getWriteAdapter()
Mage_Core_Model_Resource_Abstract::_serializeField()
Mage_Core_Model_Resource_Abstract::_unserializeField()

Documentation generated on Fri, 11 Feb 2011 17:10:22 +0200 by phpDocumentor 1.4.3