Class Mage_CatalogInventory_Model_Mysql4_Indexer_Stock_Default

Description

Implements interfaces:

CatalogInventory Default Stock Status Indexer Resource Model

Located in /CatalogInventory/Model/Mysql4/Indexer/Stock/Default.php (line 35)

Mage_Core_Model_Resource_Abstract
   |
   --Mage_Core_Model_Mysql4_Abstract
      |
      --Mage_Index_Model_Mysql4_Abstract
         |
         --Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Indexer_Abstract
            |
            --Mage_CatalogInventory_Model_Mysql4_Indexer_Stock_Default
Direct descendents
Class Description
Mage_Bundle_Model_Mysql4_Indexer_Stock Bundle Stock Status Indexer Resource Model
Mage_CatalogInventory_Model_Mysql4_Indexer_Stock_Grouped CatalogInventory Grouped Products Stock Status Indexer Resource Model
Mage_CatalogInventory_Model_Mysql4_Indexer_Stock_Configurable CatalogInventory Configurable Products Stock Status Indexer Resource Model
Variable Summary
string $_typeId
Method Summary
Variables
Methods
getIdxTable (line 264)

Retrieve temporary index table name

  • access: public
string getIdxTable ([ $table = null])
  • $table

Redefinition of:
Mage_Index_Model_Mysql4_Abstract::getIdxTable()
Get index table name with additional suffix
getIsComposite (line 129)

Check product type is composite

  • access: public
bool getIsComposite ()
getTypeId (line 104)

Retrieve active Product Type Id

  • throws: Mage_Core_Exception
  • access: public
string getTypeId ()

Implementation of:
Mage_CatalogInventory_Model_Mysql4_Indexer_Stock_Interface::getTypeId()
Retrieve Product Type Id for indexer
reindexAll (line 67)

Reindex all stock status data for default logic product type

  • access: public

Redefinition of:
Mage_Index_Model_Mysql4_Abstract::reindexAll()

Implementation of:
Mage_CatalogInventory_Model_Mysql4_Indexer_Stock_Interface::reindexAll()
Reindex all stock status data

Redefined in descendants as:
reindexEntity (line 80)

Reindex stock data for defined product ids

  • access: public
Mage_CatalogInventory_Model_Mysql4_Indexer_Stock_Default reindexEntity (int|array $entityIds)
  • int|array $entityIds

Implementation of:
Mage_CatalogInventory_Model_Mysql4_Indexer_Stock_Interface::reindexEntity()
Reindex stock status data for defined ids

Redefined in descendants as:
setIsComposite (line 118)

Set Product Type Composite flag

  • access: public
  • bool $flag
setTypeId (line 92)

Set active Product Type Id

  • access: public
  • string $typeId

Implementation of:
Mage_CatalogInventory_Model_Mysql4_Indexer_Stock_Interface::setTypeId()
Set Product Type Id for indexer
_construct (line 57)

Initialize connection and define main table name

  • access: protected
void _construct ()

Redefinition of:
Mage_Core_Model_Resource_Abstract::_construct()
Resource initialization
_getStockStatusSelect (line 151)

Get the select object for get stock status by product ids

  • access: protected
Varien_Db_Select _getStockStatusSelect ([int|array $entityIds = null], [bool $usePrimaryTable = false])
  • int|array $entityIds
  • bool $usePrimaryTable: use primary or temporary index table

Redefined in descendants as:
_isManageStock (line 139)

Retrieve is Global Manage Stock enabled

  • access: protected
bool _isManageStock ()
_prepareIndexTable (line 198)

Prepare stock status data in temporary index table

  • access: protected
Mage_CatalogInventory_Model_Mysql4_Indexer_Stock_Default _prepareIndexTable ([int|array $entityIds = null])
  • int|array $entityIds: the product limitation

Redefined in descendants as:
_updateIndex (line 214)

Update Stock status index by product ids

  • access: protected
Mage_CatalogInventory_Model_Mysql4_Indexer_Stock_Default _updateIndex (array|int $entityIds)
  • array|int $entityIds

Redefined in descendants as:
_updateIndexTable (line 247)

Update stock status index table (INSERT ... ON DUPLICATE KEY UPDATE ...)

  • access: protected
  • array $data

Inherited Methods

Inherited From Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Indexer_Abstract

Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Indexer_Abstract::getRelationsByChild()
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Indexer_Abstract::getRelationsByParent()
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Indexer_Abstract::_addAttributeToSelect()
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Indexer_Abstract::_addProductWebsiteJoinToSelect()
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Indexer_Abstract::_addWebsiteJoinToSelect()
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Indexer_Abstract::_getAttribute()

Inherited From Mage_Index_Model_Mysql4_Abstract

Mage_Index_Model_Mysql4_Abstract::clearTemporaryIndexTable()
Mage_Index_Model_Mysql4_Abstract::cloneIndexTable()
Mage_Index_Model_Mysql4_Abstract::getIdxTable()
Mage_Index_Model_Mysql4_Abstract::insertFromSelect()
Mage_Index_Model_Mysql4_Abstract::insertFromTable()
Mage_Index_Model_Mysql4_Abstract::reindexAll()
Mage_Index_Model_Mysql4_Abstract::syncData()
Mage_Index_Model_Mysql4_Abstract::useDisableKeys()
Mage_Index_Model_Mysql4_Abstract::useIdxTable()
Mage_Index_Model_Mysql4_Abstract::_getIndexAdapter()

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:00:58 +0200 by phpDocumentor 1.4.3