Class Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Flat_Indexer

Description

Catalog Product Flat Indexer Resource Model

Located in /Catalog/Model/Resource/Eav/Mysql4/Product/Flat/Indexer.php (line 35)

Mage_Core_Model_Resource_Abstract
   |
   --Mage_Core_Model_Mysql4_Abstract
      |
      --Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Flat_Indexer
Class Constant Summary
XML_NODE_ATTRIBUTE_NODES = 'global/catalog/product/flat/attribute_nodes'
XML_NODE_MAX_INDEX_COUNT = 'global/catalog/product/flat/max_index_count'
Variable Summary
Method Summary
array getAttributes (bool $cache)
string getEntityType ()
array getFlatColumns ()
array getFlatIndexes ()
string getFlatTableName (int $store)
mixed _arrayNextKey ( $array, mixed $key)
mixed _arrayPrevKey ( $array, mixed $key)
bool _compareColumnProperties (array $column, array $describe)
void _construct ()
bool _isFlatTableExists (int $store)
string _sqlColunmDefinition (string $fieldName, array $fieldProp)
string _sqlIndexDefinition (string $indexName, array $indexProp)
Variables
array $_attributeCodes (line 46)

Attribute codes for flat

  • access: protected
array $_attributes (line 53)

Attribute objects for flat cache

  • access: protected
array $_columns (line 74)

Flat table columns cache

  • access: protected
int $_entityTypeId (line 67)

Eav Catalog_Product Entity Type Id

  • access: protected
array $_existsFlatTables = array() (line 95)

Exists flat tables cache

  • access: protected
array $_indexes (line 81)

Flat table indexes cache

  • access: protected
array $_productTypes (line 88)

Product Type Instances cache

  • access: protected
array $_systemAttributes = array('status', 'required_options', 'tax_class_id', 'weight') (line 60)

Required system attributes for preload

  • access: protected

Inherited Variables

Inherited from Mage_Core_Model_Mysql4_Abstract

Mage_Core_Model_Mysql4_Abstract::$_connections
Mage_Core_Model_Mysql4_Abstract::$_fieldsForUpdate
Mage_Core_Model_Mysql4_Abstract::$_idFieldName
Mage_Core_Model_Mysql4_Abstract::$_isPkAutoIncrement
Mage_Core_Model_Mysql4_Abstract::$_mainTable
Mage_Core_Model_Mysql4_Abstract::$_mainTableFields
Mage_Core_Model_Mysql4_Abstract::$_resourceModel
Mage_Core_Model_Mysql4_Abstract::$_resourcePrefix
Mage_Core_Model_Mysql4_Abstract::$_resources
Mage_Core_Model_Mysql4_Abstract::$_serializableFields
Mage_Core_Model_Mysql4_Abstract::$_tables
Mage_Core_Model_Mysql4_Abstract::$_uniqueFields
Mage_Core_Model_Mysql4_Abstract::$_useIsObjectNew

Inherited from Mage_Core_Model_Resource_Abstract

Mage_Core_Model_Resource_Abstract::$_commitCallbacks
Methods
cleanNonWebsiteProducts (line 746)

Remove non website products

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Flat_Indexer cleanNonWebsiteProducts (int $store, [int|array $productIds = null])
  • int $store
  • int|array $productIds
cleanRelationProducts (line 1002)

Clean unused relation products

  • access: public
  • int $store
deleteFlatTable (line 1150)

Delete flat table process

  • access: public
  • int $store
getAttribute (line 252)

Retrieve loaded attribute by code

  • access: public
Mage_Eav_Model_Entity_Attribute getAttribute (string $attributeCode)
  • string $attributeCode
getAttributeCodes (line 148)

Retrieve attribute codes using for flat

  • access: public
array getAttributeCodes ()
getAttributes (line 221)

Retrieve attribute objects for flat

  • access: public
array getAttributes (bool $cache)
  • bool $cache
getEntityType (line 196)

Retrieve entity type

  • access: public
string getEntityType ()
getEntityTypeId (line 206)

Retrieve Catalog Entity Type Id

  • access: public
int getEntityTypeId ()
getFlatColumns (line 286)

Retrieve catalog product flat table columns array

  • access: public
array getFlatColumns ()
getFlatHelper (line 138)

Retrieve Catalog Product Flat helper

  • access: public
getFlatIndexes (line 356)

Retrieve catalog product flat table indexes array

  • access: public
array getFlatIndexes ()
getFlatTableName (line 276)

Retrieve Catalog Product Flat Table name

  • access: public
string getFlatTableName (int $store)
  • int $store
getProductTypeInstances (line 879)

Retrieve Product Type Instances as key - type code, value - instance model

  • access: public
array getProductTypeInstances ()
prepareFlatTable (line 532)

Prepare flat table for store

  • access: public
  • int $store
rebuild (line 111)

Rebuild Catalog Product Flat Data

  • access: public
  • $store
removeProduct (line 1062)

Remove product data from flat

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Flat_Indexer removeProduct (int|array $productIds, int $store)
  • int|array $productIds
  • int $store
removeProductChildren (line 1087)

Remove children from parent product

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Flat_Indexer removeProductChildren (int|array $productIds, int $store)
  • int|array $productIds
  • int $store
saveProduct (line 1132)

Save product(s) data for store

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Flat_Indexer saveProduct (int|array $productIds, int $store)
  • int|array $productIds
  • int $store
updateAttribute (line 787)

Update attribute flat data

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Flat_Indexer updateAttribute (Mage_Eav_Model_Entity_Attribute $attribute, int $store, [int|array $productIds = null])
updateChildrenDataFromParent (line 962)

Update children data from parent

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Flat_Indexer updateChildrenDataFromParent (int $store, [int|array $productIds = null])
  • int $store
  • int|array $productIds
updateEavAttributes (line 844)

Update non static EAV attributes flat data

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Flat_Indexer updateEavAttributes (int $store, [int|array $productIds = null])
  • int $store
  • int|array $productIds: update only product(s)
updateEventAttributes (line 865)

Update events observer attributes

  • access: public
Mage_Catalog_Model_Product_Flat_Indexer updateEventAttributes ([int $store = null])
  • int $store
updateProduct (line 1108)

Update flat data for product

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Flat_Indexer updateProduct (int|array $productIds, int $store)
  • int|array $productIds
  • int $store
updateRelationProducts (line 901)

Update relation products

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Flat_Indexer updateRelationProducts (int $store, [int|array $productIds = null])
  • int $store
  • int|array $productIds: Update child product(s) only
updateStaticAttributes (line 678)

Add or Update static attributes

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Flat_Indexer updateStaticAttributes (int $store, [int|array $productIds = null])
  • int $store
  • int|array $productIds: update only product(s)
_arrayNextKey (line 1208)

Retrieve next key from array by key

  • access: protected
mixed _arrayNextKey ( $array, mixed $key)
  • array $array
  • mixed $key
_arrayPrevKey (line 1189)

Retrieve previous key from array by key

  • access: protected
mixed _arrayPrevKey ( $array, mixed $key)
  • array $array
  • mixed $key
_compareColumnProperties (line 421)

Compare Flat style with Describe style columns

If column a different - return false

  • access: protected
bool _compareColumnProperties (array $column, array $describe)
  • array $column
  • array $describe
_construct (line 101)

Initialize connection

  • access: protected
void _construct ()

Redefinition of:
Mage_Core_Model_Resource_Abstract::_construct()
Resource initialization
_isFlatTableExists (line 1167)

Check is flat table for store exists

  • access: protected
bool _isFlatTableExists (int $store)
  • int $store
_sqlColunmDefinition (line 462)

Retrieve column definition fragment

Example: `field_name` smallint(5) unsigned NOT NULL default '0'

  • access: protected
string _sqlColunmDefinition (string $fieldName, array $fieldProp)
  • string $fieldName
  • array $fieldProp
_sqlIndexDefinition (line 493)

Retrieve index definition fragment

Example: INDEX `IDX_NAME` (`field_id`)

  • access: protected
string _sqlIndexDefinition (string $indexName, array $indexProp)
  • string $indexName
  • array $indexProp

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
XML_NODE_ATTRIBUTE_NODES = 'global/catalog/product/flat/attribute_nodes' (line 39)
XML_NODE_MAX_INDEX_COUNT = 'global/catalog/product/flat/max_index_count' (line 38)

Inherited Constants

Inherited from Mage_Core_Model_Mysql4_Abstract

Mage_Core_Model_Mysql4_Abstract::CHECKSUM_KEY_NAME

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