Class Mage_CatalogIndex_Model_Indexer

Description

CatalogIndex Index operation model

Located in /CatalogIndex/Model/Indexer.php (line 35)

Varien_Object
   |
   --Mage_Core_Model_Abstract
      |
      --Mage_CatalogIndex_Model_Indexer
Class Constant Summary
Variable Summary
Method Summary
array buildEntityFilter (array $attributes, array $values,  &$filteredAttributes, Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection $productCollection, array $filteredAttributes)
array buildEntityPriceFilter (array $attributes, array $values,  &$filteredAttributes, Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection $productCollection, array $filteredAttributes)
Mage_CatalogIndex_Model_Indexer plainReindex ([mixed $products = null], [mixed $attributes = null], [mixed $stores = null])
Mage_CatalogIndex_Model_Indexer updateCatalogProductFlat ( $store, [mixed $products = null], [string $resourceTable = null], mixed $storeId)
void _construct ()
double _getBaseToSpecifiedCurrencyRate (string $code)
Varien_Db_Select _getSelect ()
array _getStores ()
Mage_CatalogIndex_Model_Indexer _walkCollection (Mage_Catalog_Resource_Eav_Mysql4_Product_Collection $collection, mixed $store, [array $attributes = array()], [array $prices = array()])
Variables
array $_attributeIndexers = array('eav') (line 64)

Predefined sets of indexer types which are related with product filterable attributes

  • access: protected
array $_indexers = array() (line 49)

Set of available indexers Each indexer type is responsable for index data storage

  • access: protected
array $_priceIndexers = array('price', 'tier_price', 'minimal_price') (line 56)

Predefined set of indexer types which are related with product price

  • access: protected
array $_productTypePriority = null (line 71)

Tproduct types sorted by index priority

  • access: protected

Inherited Variables

Inherited from Mage_Core_Model_Abstract

Mage_Core_Model_Abstract::$_cacheTag
Mage_Core_Model_Abstract::$_dataSaveAllowed
Mage_Core_Model_Abstract::$_eventObject
Mage_Core_Model_Abstract::$_eventPrefix
Mage_Core_Model_Abstract::$_isObjectNew
Mage_Core_Model_Abstract::$_resource
Mage_Core_Model_Abstract::$_resourceCollectionName
Mage_Core_Model_Abstract::$_resourceName
Methods
buildEntityFilter (line 673)

Build Entity filter

  • access: public
array buildEntityFilter (array $attributes, array $values,  &$filteredAttributes, Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection $productCollection, array $filteredAttributes)
buildEntityPriceFilter (line 578)

Build Entity price filter

  • access: public
array buildEntityPriceFilter (array $attributes, array $values,  &$filteredAttributes, Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection $productCollection, array $filteredAttributes)
cleanup (line 168)

Remove index data for specifuc product

  • access: public
Mage_CatalogIndex_Model_Indexer cleanup (mixed $product)
  • mixed $product
getRetreiver (line 514)

Retrieve Data retreiver

  • access: public
Mage_CatalogIndex_Model_Data_Abstract getRetreiver (string $type)
  • string $type
plainReindex (line 182)

Reindex catalog product data which used in layered navigation and in product list

  • access: public
Mage_CatalogIndex_Model_Indexer plainReindex ([mixed $products = null], [mixed $attributes = null], [mixed $stores = null])
  • mixed $products
  • mixed $attributes
  • mixed $stores
prepareCatalogProductFlatColumns (line 766)

Prepare Catalog Product Flat Columns

  • access: public
Mage_CatalogIndex_Model_Indexer prepareCatalogProductFlatColumns ( $object)
  • Varien_Object $object
prepareCatalogProductFlatIndexes (line 779)

Prepare Catalog Product Flat Indexes

  • access: public
Mage_CatalogIndex_Model_Indexer prepareCatalogProductFlatIndexes ( $object)
  • Varien_Object $object
queueIndexing (line 524)

Set CatalogIndex Flag as queue Indexing

  • access: public
updateCatalogProductFlat (line 794)

Update price process for catalog product flat

  • access: public
Mage_CatalogIndex_Model_Indexer updateCatalogProductFlat ( $store, [mixed $products = null], [string $resourceTable = null], mixed $storeId)
  • mixed $storeId
  • string $resourceTable
  • mixed $products
  • $store
_addFilterableAttributesToCollection (line 750)

Add indexable attributes to product collection select

  • deprecated:
  • access: protected
Mage_CatalogIndex_Model_Indexer _addFilterableAttributesToCollection ($collection $collection)
  • $collection $collection
_afterPlainReindex (line 351)

After plain reindex process

  • access: protected
_construct (line 77)

Initialize all indexers and resource model

  • access: protected
void _construct ()
_getBaseToSpecifiedCurrencyRate (line 564)

Retrieve Base to Specified Currency Rate

  • access: protected
double _getBaseToSpecifiedCurrencyRate (string $code)
  • string $code
_getIndexableAttributeCodes (line 118)

Get array of attribute codes required for indexing Each indexer type provide his own set of attributes

  • access: protected
array _getIndexableAttributeCodes ()
_getPriorifiedProductTypes (line 542)

Get product types list by type priority

type priority is important in index process example: before indexing complex (configurable, grouped etc.) products we have to index all simple products

  • access: protected
array _getPriorifiedProductTypes ()
_getProductCollection (line 391)

Return collection with product and store filters

  • access: protected
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection _getProductCollection (Mage_Core_Model_Store $store, mixed $products)
_getRegisteredIndexers (line 101)

Get all registered in configuration indexers

  • access: protected
array _getRegisteredIndexers ()
_getSelect (line 738)

Retrieve SELECT object

  • access: protected
Varien_Db_Select _getSelect ()
_getStores (line 135)

Retreive store collection

  • access: protected
array _getStores ()
_getWebsites (line 150)

Retreive store collection

  • access: protected
_loadIndexers (line 88)

Create instances of all index types

  • access: protected
_walkCollection (line 466)

Run indexing process for product collection

  • access: protected
Mage_CatalogIndex_Model_Indexer _walkCollection (Mage_Catalog_Resource_Eav_Mysql4_Product_Collection $collection, mixed $store, [array $attributes = array()], [array $prices = array()])
  • Mage_Catalog_Resource_Eav_Mysql4_Product_Collection $collection
  • mixed $store
  • array $attributes
  • array $prices
_walkCollectionRelation (line 417)

Walk Product Collection for Relation Parent products

  • access: public
Mage_CatalogIndex_Model_Indexer _walkCollectionRelation (Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection $collection, Mage_Core_Model_Store|Mage_Core_Model_Website $store, [array $attributes = array()], [array $prices = array()])

Inherited Methods

Inherited From Mage_Core_Model_Abstract

Mage_Core_Model_Abstract::afterCommitCallback()
Mage_Core_Model_Abstract::afterLoad()
Mage_Core_Model_Abstract::cleanModelCache()
Mage_Core_Model_Abstract::clearInstance()
Mage_Core_Model_Abstract::delete()
Mage_Core_Model_Abstract::getCacheIdTags()
Mage_Core_Model_Abstract::getCacheTags()
Mage_Core_Model_Abstract::getCollection()
Mage_Core_Model_Abstract::getEntityId()
Mage_Core_Model_Abstract::getId()
Mage_Core_Model_Abstract::getIdFieldName()
Mage_Core_Model_Abstract::getResource()
Mage_Core_Model_Abstract::getResourceCollection()
Mage_Core_Model_Abstract::getResourceName()
Mage_Core_Model_Abstract::isObjectNew()
Mage_Core_Model_Abstract::load()
Mage_Core_Model_Abstract::save()
Mage_Core_Model_Abstract::setId()
Mage_Core_Model_Abstract::_afterDelete()
Mage_Core_Model_Abstract::_afterDeleteCommit()
Mage_Core_Model_Abstract::_afterLoad()
Mage_Core_Model_Abstract::_afterSave()
Mage_Core_Model_Abstract::_afterSaveCommit()
Mage_Core_Model_Abstract::_beforeDelete()
Mage_Core_Model_Abstract::_beforeLoad()
Mage_Core_Model_Abstract::_beforeSave()
Mage_Core_Model_Abstract::_clearData()
Mage_Core_Model_Abstract::_clearReferences()
Mage_Core_Model_Abstract::_getEventData()
Mage_Core_Model_Abstract::_getResource()
Mage_Core_Model_Abstract::_hasModelChanged()
Mage_Core_Model_Abstract::_init()
Mage_Core_Model_Abstract::_protectFromNonAdmin()
Mage_Core_Model_Abstract::_setResourceModel()
Class Constants
REINDEX_TYPE_ALL = 0 (line 37)
REINDEX_TYPE_ATTRIBUTE = 2 (line 39)
REINDEX_TYPE_PRICE = 1 (line 38)
STEP_SIZE = 1000 (line 41)

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