Class Mage_Index_Model_Mysql4_Abstract

Description

Abstract resource model. Can be used as base for indexer resources

Located in /Index/Model/Mysql4/Abstract.php (line 30)

Mage_Core_Model_Resource_Abstract
   |
   --Mage_Core_Model_Mysql4_Abstract
      |
      --Mage_Index_Model_Mysql4_Abstract
Direct descendents
Class Constant Summary
IDX_SUFFIX = '_idx'
TMP_SUFFIX = '_tmp'
Variable Summary
Method Summary
string getIdxTable ([string $table = null])
Mage_Index_Model_Mysql4_Abstract insertFromSelect (string $select, string $destTable,  $columns, [bool $readToIndex = true])
Mage_Index_Model_Mysql4_Abstract insertFromTable (string $sourceTable, string $destTable, [bool $readToIndex = true])
void reindexAll ()
Varien_Db_Adapter_Pdo_Mysql _getIndexAdapter ()
Variables
Methods
clearTemporaryIndexTable (line 228)

Clean up temporary index table

  • access: public
void clearTemporaryIndexTable ()
cloneIndexTable (line 105)

Create temporary table for index data pregeneration

  • access: public
Mage_Index_Model_Mysql4_Abstract cloneIndexTable ([ $asOriginal = false])
  • $asOriginal
getIdxTable (line 71)

Get index table name with additional suffix

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

Redefined in descendants as:
insertFromSelect (line 154)

Insert data from select statement of read adapter to destination table related with index adapter

  • access: public
Mage_Index_Model_Mysql4_Abstract insertFromSelect (string $select, string $destTable,  $columns, [bool $readToIndex = true])
  • string $select
  • string $destTable
  • array $columns
  • bool $readToIndex: data migration direction (true - read=>index, false - index=>read)
insertFromTable (line 132)

Copy data from source table of read adapter to destination table of index adapter

  • access: public
Mage_Index_Model_Mysql4_Abstract insertFromTable (string $sourceTable, string $destTable, [bool $readToIndex = true])
  • string $sourceTable
  • string $destTable
  • bool $readToIndex: data migration direction (true - read=>index, false - index=>read)
reindexAll (line 49)
  • access: public
void reindexAll ()

Redefined in descendants as:
syncData (line 88)

Synchronize data between index storage and original storage

  • access: public
useDisableKeys (line 216)

Set or get flag that defines if need to disable keys during data inserting

  • access: public
Mage_Index_Model_Mysql4_Abstract useDisableKeys ([bool $value = null])
  • bool $value
useIdxTable (line 202)

Set or get what either "_idx" or "_tmp" suffixed temporary index table need to use

  • access: public
Mage_Index_Model_Mysql4_Abstract useIdxTable ([bool $value = null])
  • bool $value
_getIndexAdapter (line 60)

Get DB adapter for index data processing

  • access: protected
Varien_Db_Adapter_Pdo_Mysql _getIndexAdapter ()

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
IDX_SUFFIX = '_idx' (line 32)
TMP_SUFFIX = '_tmp' (line 33)

Inherited Constants

Inherited from Mage_Core_Model_Mysql4_Abstract

Mage_Core_Model_Mysql4_Abstract::CHECKSUM_KEY_NAME

Documentation generated on Fri, 11 Feb 2011 16:54:45 +0200 by phpDocumentor 1.4.3