Class Mage_CatalogIndex_Model_Mysql4_Aggregation

Description

Magento

NOTICE OF LICENSE

This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.

DISCLAIMER

Do not edit or add to this file if you wish to upgrade Magento to newer versions in the future. If you wish to customize Magento for your needs please refer to http://www.magentocommerce.com for more information.

Located in /CatalogIndex/Model/Mysql4/Aggregation.php (line 27)

Mage_Core_Model_Resource_Abstract
   |
   --Mage_Core_Model_Mysql4_Abstract
      |
      --Mage_CatalogIndex_Model_Mysql4_Aggregation
Variable Summary
mixed $_tagTable
mixed $_toTagTable
Method Summary
void clearCacheData ( $tags,  $storeId)
array getCacheData (string $key,  $storeId, int $store)
void getProductCategoryPaths ( $productIds)
Mage_CatalogIndex_Model_Mysql4_Aggregation saveCacheData (array $data, string $key, array|string $tags, int $storeId)
void _construct ()
array _getTagIds (array $tags)
Variables
Methods
clearCacheData (line 115)
  • access: public
void clearCacheData ( $tags,  $storeId)
  • $tags
  • $storeId
getCacheData (line 49)

Get aggregated cache data by data key and store

  • access: public
array getCacheData (string $key,  $storeId, int $store)
  • string $key
  • int $store
  • $storeId
getProductCategoryPaths (line 213)
  • access: public
void getProductCategoryPaths ( $productIds)
  • $productIds
saveCacheData (line 73)

Save data to aggreagation table with tags relations

  • access: public
Mage_CatalogIndex_Model_Mysql4_Aggregation saveCacheData (array $data, string $key, array|string $tags, int $storeId)
  • array $data
  • string $key
  • array|string $tags
  • int $storeId
_addTags (line 195)

Insert tags to tag table

  • access: protected
  • string $tags: | array $tags
_construct (line 35)

Initialize resource tables

  • access: protected
void _construct ()

Redefinition of:
Mage_Core_Model_Resource_Abstract::_construct()
Resource initialization
_getTagIds (line 163)

Get identifiers of tags if some tags not exist they will be added

  • access: protected
array _getTagIds (array $tags)
  • array $tags
_saveTagRelations (line 144)

Save related tags for aggreagation data

  • access: protected
Mage_CatalogIndex_Model_Mysql4_Aggregation _saveTagRelations (int $aggregationId, array $tags)
  • int $aggregationId
  • array $tags

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 16:56:18 +0200 by phpDocumentor 1.4.3