Class Mage_CatalogIndex_Model_Mysql4_Indexer

Description

Reindexer resource model

Located in /CatalogIndex/Model/Mysql4/Indexer.php (line 33)

Mage_Core_Model_Resource_Abstract
   |
   --Mage_Core_Model_Mysql4_Abstract
      |
      --Mage_CatalogIndex_Model_Mysql4_Indexer
Variable Summary
Method Summary
void clear ([bool $eav = true], [bool $price = true], [bool $minimal = true], [bool $finalPrice = true], [bool $tierPrice = true], [mixed $products = null], [mixed $store = null])
array getMinimalPrice (arary $products, Mage_Core_Model_Store $store)
array getProductData (array $products, array $attributeIds, Mage_Core_Model_Store $store)
array getTierData (array $products, Mage_Core_Model_Store $store)
Mage_CatalogIndex_Model_Mysql4_Indexer reindexAttributes (array $products, array $attributeIds, mixed $store, [int|null $forcedId = null], [string $table = 'catalogindex/eav'], [bool $storeIsWebsite = false])
Mage_CatalogIndex_Model_Mysql4_Indexer reindexFinalPrices (array $products, Mage_Core_Model_Store $store, [int $forcedId = null])
Mage_CatalogIndex_Model_Mysql4_Indexer reindexPrices (array $products, array $attributeIds, Mage_Core_Model_Store $store)
Mage_CatalogIndex_Model_Mysql4_Indexer reindexTiers (array $products, Mage_Core_Model_Store $store, [int $forcedId = null])
Mage_CatalogIndex_Model_Mysql4_Indexer updateCatalogProductFlat (int $storeId, [ $productIds = null], [string $tableName = null])
Mage_CatalogIndex_Model_Mysql4_Indexer _beginInsert (string $table, array $fields)
Mage_CatalogIndex_Model_Mysql4_Indexer _commitInsert (string $table, [bool $forced = true])
void _construct ()
array _getPriceTables ()
Mage_CatalogIndex_Model_Mysql4_Indexer _insert (string $table, array $data)
void _loadAttribute ( $id)
Variables
Methods
clear (line 64)

Delete index data by specific conditions

  • access: public
void clear ([bool $eav = true], [bool $price = true], [bool $minimal = true], [bool $finalPrice = true], [bool $tierPrice = true], [mixed $products = null], [mixed $store = null])
  • bool $eav: clear eav index data flag
  • bool $price: clear price index data flag
  • bool $minimal: clear minimal price index data flag
  • bool $finalPrice: clear final price index data flag
  • bool $tierPrice: clear tier price index data flag
  • mixed $products: applicable products
  • mixed $store: applicable stores
getMinimalPrice (line 466)

Get minimal prices by set of the products

  • access: public
array getMinimalPrice (arary $products, Mage_Core_Model_Store $store)
getProductData (line 487)

Get data for products

  • access: public
array getProductData (array $products, array $attributeIds, Mage_Core_Model_Store $store)
getTierData (line 447)

Get tier prices data by set of products

  • access: public
array getTierData (array $products, Mage_Core_Model_Store $store)
prepareCatalogProductFlatColumns (line 552)

Add price columns for catalog product flat table

  • access: public
Mage_CatalogIndex_Model_Mysql4_Indexer prepareCatalogProductFlatColumns ( $object)
  • Varien_Object $object
prepareCatalogProductFlatIndexes (line 578)

Add price indexes for catalog product flat table

  • access: public
Mage_CatalogIndex_Model_Mysql4_Indexer prepareCatalogProductFlatIndexes ( $object)
  • Varien_Object $object
reindexAttributes (line 374)

Reindex attributes data

  • access: public
Mage_CatalogIndex_Model_Mysql4_Indexer reindexAttributes (array $products, array $attributeIds, mixed $store, [int|null $forcedId = null], [string $table = 'catalogindex/eav'], [bool $storeIsWebsite = false])
  • array $products
  • array $attributeIds
  • mixed $store
  • int|null $forcedId
  • string $table
  • bool $storeIsWebsite
reindexFinalPrices (line 259)

Reindex product final prices

  • access: public
Mage_CatalogIndex_Model_Mysql4_Indexer reindexFinalPrices (array $products, Mage_Core_Model_Store $store, [int $forcedId = null])
  • array $products: array of product ids
  • Mage_Core_Model_Store $store
  • int $forcedId: | null $forcedId identifier of "parent" product
reindexMinimalPrices (line 316)

Reindex product minimal prices

  • access: public
Mage_CatalogIndex_Model_Mysql4_Indexer reindexMinimalPrices (array $products, Mage_Core_Model_Store $store)
reindexPrices (line 244)

Reindex product prices

  • access: public
Mage_CatalogIndex_Model_Mysql4_Indexer reindexPrices (array $products, array $attributeIds, Mage_Core_Model_Store $store)
reindexTiers (line 174)

Reindex data for tier prices

  • access: public
Mage_CatalogIndex_Model_Mysql4_Indexer reindexTiers (array $products, Mage_Core_Model_Store $store, [int $forcedId = null])
  • array $products: array of product ids
  • Mage_Core_Model_Store $store
  • int $forcedId: | null $forcedId identifier of "parent" product
updateCatalogProductFlat (line 603)

Update prices for Catalog Product flat

  • access: public
Mage_CatalogIndex_Model_Mysql4_Indexer updateCatalogProductFlat (int $storeId, [ $productIds = null], [string $tableName = null])
  • int $storeId
  • string $tableName
  • $productIds
_beginInsert (line 506)

Prepare base information for data insert

  • access: protected
Mage_CatalogIndex_Model_Mysql4_Indexer _beginInsert (string $table, array $fields)
  • string $table
  • array $fields
_commitInsert (line 518)

Put data into table

  • access: protected
Mage_CatalogIndex_Model_Mysql4_Indexer _commitInsert (string $table, [bool $forced = true])
  • string $table
  • bool $forced
_construct (line 39)
  • access: protected
void _construct ()

Redefinition of:
Mage_Core_Model_Resource_Abstract::_construct()
Resource initialization
_getPriceTables (line 160)

Get tables which are used for index related with price

  • access: protected
array _getPriceTables ()
_insert (line 540)

Insert data to table

  • access: protected
Mage_CatalogIndex_Model_Mysql4_Indexer _insert (string $table, array $data)
  • string $table
  • array $data
_loadAttribute (line 44)
  • access: protected
void _loadAttribute ( $id)
  • $id

Inherited Methods

Inherited From Mage_Core_Model_Mysql4_Abstract

Mage_Core_Model_Mysql4_Abstract::addUniqueField()
Mage_Core_Model_Mysql4_Abstract::afterLoad()
Mage_Core_Model_Mysql4_Abstract::delete()
Mage_Core_Model_Mysql4_Abstract::forsedSave()
Mage_Core_Model_Mysql4_Abstract::getChecksum()
Mage_Core_Model_Mysql4_Abstract::getIdFieldName()
Mage_Core_Model_Mysql4_Abstract::getMainTable()
Mage_Core_Model_Mysql4_Abstract::getReadConnection()
Mage_Core_Model_Mysql4_Abstract::getTable()
Mage_Core_Model_Mysql4_Abstract::getUniqueFields()
Mage_Core_Model_Mysql4_Abstract::getValueTable()
Mage_Core_Model_Mysql4_Abstract::hasDataChanged()
Mage_Core_Model_Mysql4_Abstract::load()
Mage_Core_Model_Mysql4_Abstract::resetUniqueField()
Mage_Core_Model_Mysql4_Abstract::save()
Mage_Core_Model_Mysql4_Abstract::unserializeFields()
Mage_Core_Model_Mysql4_Abstract::_afterDelete()
Mage_Core_Model_Mysql4_Abstract::_afterLoad()
Mage_Core_Model_Mysql4_Abstract::_afterSave()
Mage_Core_Model_Mysql4_Abstract::_beforeDelete()
Mage_Core_Model_Mysql4_Abstract::_beforeSave()
Mage_Core_Model_Mysql4_Abstract::_checkUnique()
Mage_Core_Model_Mysql4_Abstract::_getConnection()
Mage_Core_Model_Mysql4_Abstract::_getLoadSelect()
Mage_Core_Model_Mysql4_Abstract::_getReadAdapter()
Mage_Core_Model_Mysql4_Abstract::_getWriteAdapter()
Mage_Core_Model_Mysql4_Abstract::_init()
Mage_Core_Model_Mysql4_Abstract::_initUniqueFields()
Mage_Core_Model_Mysql4_Abstract::_prepareDataForSave()
Mage_Core_Model_Mysql4_Abstract::_prepareDataForTable()
Mage_Core_Model_Mysql4_Abstract::_prepareValueForSave()
Mage_Core_Model_Mysql4_Abstract::_serializeFields()
Mage_Core_Model_Mysql4_Abstract::_setMainTable()
Mage_Core_Model_Mysql4_Abstract::_setResource()

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()
Class Constants

Documentation generated on Fri, 11 Feb 2011 17:06:33 +0200 by phpDocumentor 1.4.3