Class Mage_CatalogIndex_Model_Aggregation

Description

Index data aggregation model

Allow cache some aggregated data with tag dependency

Located in /CatalogIndex/Model/Aggregation.php (line 32)

Varien_Object
   |
   --Mage_Core_Model_Abstract
      |
      --Mage_CatalogIndex_Model_Aggregation
Class Constant Summary
CACHE_FLAG_NAME = 'layered_navigation'
Method Summary
Mage_CatalogIndex_Model_Aggregation clearCacheData ([array $tags = array()], [int|null|string $store = null])
array|null getCacheData (string $key, [null|int|string|Mage_Core_Model_Store $store = null])
Mage_CatalogIndex_Model_Aggregation saveCacheData ( $data, string $key, array $tags, [null|int|string|Mage_Core_Model_Store $store = null])
void _construct ()
void _isEnabled ()
string _processKey (string $key)
unknown _processTags (unknown_type $tags)
Variables
Methods
clearCacheData (line 100)

Delete cached aggreagation data

  • access: public
Mage_CatalogIndex_Model_Aggregation clearCacheData ([array $tags = array()], [int|null|string $store = null])
  • array $tags
  • int|null|string $store
clearProductData (line 116)

Clear all cache data related with products

  • access: public
Mage_CatalogIndex_Model_Aggregation clearProductData (int|array $productIds)
  • int|array $productIds
getCacheData (line 56)

Get aggregated data by data key and store

  • access: public
array|null getCacheData (string $key, [null|int|string|Mage_Core_Model_Store $store = null])
saveCacheData (line 79)

Save aggregation data to cache

  • access: public
Mage_CatalogIndex_Model_Aggregation saveCacheData ( $data, string $key, array $tags, [null|int|string|Mage_Core_Model_Store $store = null])
_construct (line 39)

Initialize resource model

  • access: protected
void _construct ()
_isEnabled (line 44)
  • access: protected
void _isEnabled ()
_processKey (line 135)

Prepare data key

  • access: protected
string _processKey (string $key)
  • string $key
_processTags (line 150)

Process tags array

this method split tags like "category:1,2,3" to four different tags: category, category1, category2, category3

  • access: protected
unknown _processTags (unknown_type $tags)
  • unknown_type $tags

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
CACHE_FLAG_NAME = 'layered_navigation' (line 34)

Documentation generated on Fri, 11 Feb 2011 16:56:18 +0200 by phpDocumentor 1.4.3