Class Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Flat

Description

Category flat model

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

Mage_Core_Model_Resource_Abstract
   |
   --Mage_Core_Model_Mysql4_Abstract
      |
      --Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Flat
Variable Summary
Method Summary
void addChildNodes (array $children, string $path, Varien_Object $parent)
bool checkId (int $id)
array getAnchorsAbove ( $filterIds, [int $storeId = 0])
array|Varien_Data_Collection getCategories (integer $parent, [integer $recursionLevel = 0], [boolean|string $sorted = false], [boolean $asCollection = false], [boolean $toLoad = true])
array getChildren (Mage_Catalog_Model_Category $category, [ $recursive = true], [ $isActive = true], integer $level)
integer getChildrenAmount (Mage_Catalog_Model_Category $category, [bool $isActiveFlag = true])
string getMainStoreTable ([integer $storeId = 0])
string getMainTable ()
Varien_Object getNodeById (integer $nodeId, [array $nodes = null])
array getNodes (integer|null $parentId, [integer $recursionLevel = 0], [integer $storeId = 0])
array getParentCategories (Mage_Catalog_Model_Category $category, [ $isActive = true])
integer getStoreId ()
array getStoresRootCategories ([int|array $storeIds = null])
boolean getUseStoreTables ()
bool isRebuilt ()
Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Flat moveold (integer $categoryId, integer $prevParentId, integer $parentId)
void removeStores ( $stores)
Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Flat synchronize ([Mage_Catalog_Model_Category|int $category = null], [array $storeIds = array()])
void _construct ()
array _getAttributes ()
array _getAttributeTypeValues (string $type, array $entityIds, integer $store_id)
array _getAttributeValues (array $entityIds, integer $store_id)
array _getEavColumns ()
void _getTableSqlSchema ([ $storeId = 0])
Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Flat _loadNodes ([ $parentNode = null], [integer $recursionLevel = 0], [integer $storeId = 0], integer $parentId)
array _prepareDataForAllFields (Mage_Catalog_Model_Category $category, [array $replaceFields = array()])
array _prepareValuesToInsert (array $data)
Variables
mixed $_attributeCodes = null (line 47)
  • access: protected
mixed $_columns = null (line 43)
  • access: protected
mixed $_columnsSql = null (line 45)
  • access: protected
array $_inactiveCategoryIds = null (line 54)

Inactive categories ids

  • access: protected
mixed $_isRebuilt = null (line 56)
  • access: protected
mixed $_loaded = false (line 39)
  • access: protected
mixed $_nodes = array() (line 41)
  • access: protected
mixed $_storeId = null (line 37)
  • access: protected
array $_storesRootCategories (line 63)

array with root category id per store

  • 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
addChildNodes (line 242)

Creating sorted array of nodes

  • access: public
void addChildNodes (array $children, string $path, Varien_Object $parent)
  • array $children
  • string $path
  • Varien_Object $parent
addInactiveCategoryIds (line 138)

Add inactive categories ids

  • access: public
  • $ids
checkId (line 1193)

Check if category id exist

  • access: public
bool checkId (int $id)
  • int $id
createTable (line 491)

Create Flate Table(s)

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Flat createTable (array|int $stores)
  • array|int $stores
deleteStores (line 732)

Delete store table(s) of given stores;

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Flat deleteStores (array|integer $stores)
  • array|integer $stores
getAllChildren (line 1178)

Return all children ids of category (with category id)

  • access: public
array getAllChildren (Mage_Catalog_Model_Category $category)
getAnchorsAbove (line 1246)

Retrieve anchors above

  • access: public
array getAnchorsAbove ( $filterIds, [int $storeId = 0])
  • array $filterIds
  • int $storeId
getAttribute (line 1027)

Retrieve attribute instance Special for non static flat table

  • access: public
Mage_Eav_Model_Entity_Attribute_Abstract getAttribute (mixed $attribute)
  • mixed $attribute
getCategories (line 320)

Return array or collection of categories

  • access: public
array|Varien_Data_Collection getCategories (integer $parent, [integer $recursionLevel = 0], [boolean|string $sorted = false], [boolean $asCollection = false], [boolean $toLoad = true])
  • integer $parent
  • integer $recursionLevel
  • boolean|string $sorted
  • boolean $asCollection
  • boolean $toLoad
getChildren (line 1153)

Return children ids of category

  • access: public
array getChildren (Mage_Catalog_Model_Category $category, [ $recursive = true], [ $isActive = true], integer $level)
getChildrenAmount (line 1040)

Get count of active/not active children categories

  • access: public
integer getChildrenAmount (Mage_Catalog_Model_Category $category, [bool $isActiveFlag = true])
getChildrenCategories (line 1118)

Return children categories of category

  • access: public
array getChildrenCategories (Mage_Catalog_Model_Category $category)
getDesignUpdateData (line 1207)

Get design update data of parent categories

  • access: public
array getDesignUpdateData (Mage_Catalog_Model_Category $category)
getInactiveCategoryIds (line 164)

Retreive inactive categories ids

  • access: public
array getInactiveCategoryIds ()
getMainStoreTable (line 111)

Return name of table for given $storeId.

  • access: public
string getMainStoreTable ([integer $storeId = 0])
  • integer $storeId
getMainTable (line 100)

Get main table name

  • access: public
string getMainTable ()

Redefinition of:
Mage_Core_Model_Mysql4_Abstract::getMainTable()
Get main table name
getNodeById (line 349)

Return node with id $nodeId

  • access: public
Varien_Object getNodeById (integer $nodeId, [array $nodes = null])
  • integer $nodeId
  • array $nodes
getNodes (line 278)

Return sorted array of nodes

  • access: public
array getNodes (integer|null $parentId, [integer $recursionLevel = 0], [integer $storeId = 0])
  • integer|null $parentId
  • integer $recursionLevel
  • integer $storeId
getParentCategories (line 1071)

Return parent categories of category

  • access: public
array getParentCategories (Mage_Catalog_Model_Category $category, [ $isActive = true])
getParentDesignCategory (line 1099)

Return parent category of current category with own custom design settings

  • access: public
Mage_Catalog_Model_Category getParentDesignCategory (Mage_Catalog_Model_Category $category)
getProductCount (line 1056)

Get products count in category

  • access: public
integer getProductCount (Mage_Catalog_Model_Category $category)
getStoreId (line 87)

Return store id

  • access: public
integer getStoreId ()
getStoresRootCategories (line 1262)

Retrieve array with root category id per store

  • access: public
array getStoresRootCategories ([int|array $storeIds = null])
  • int|array $storeIds: result limitation
getUseStoreTables (line 128)

Return true if need use for each store different table of flat categoris data.

  • access: public
boolean getUseStoreTables ()
isInRootCategoryList (line 1134)

Check is category in list of store categories

  • access: public
boolean isInRootCategoryList (Mage_Catalog_Model_Category $category)
isRebuilt (line 373)

Check if category flat data is rebuilt

  • access: public
bool isRebuilt ()
move (line 851)

Synchronize flat category data after move by affected category ids

  • access: public
  • array $affectedCategoryIds
moveold (line 927)

Synchronize flat data with eav after moving category

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Flat moveold (integer $categoryId, integer $prevParentId, integer $parentId)
  • integer $categoryId
  • integer $prevParentId
  • integer $parentId
rebuild (line 418)

Rebuild flat data from eav

  • access: public
  • $stores
removeStores (line 839)
  • access: public
void removeStores ( $stores)
  • $stores
setStoreId (line 76)

Set store id

  • access: public
  • integer $storeId
synchronize (line 778)

Synchronize flat data with eav model.

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Flat synchronize ([Mage_Catalog_Model_Category|int $category = null], [array $storeIds = array()])
_construct (line 65)
  • access: protected
void _construct ()

Redefinition of:
Mage_Core_Model_Resource_Abstract::_construct()
Resource initialization
_createTable (line 502)

Creating table and adding attributes as fields to table

  • access: protected
Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Flat _createTable (array|integer $store)
  • array|integer $store
_deleteTable (line 744)

Delete table(s) of given stores.

  • access: protected
Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Flat _deleteTable (array|integer $stores)
  • array|integer $stores
_getAttributes (line 652)

Return array of attribute codes for entity type 'catalog_category'

  • access: protected
array _getAttributes ()
_getAttributeTypeValues (line 712)

Return attribute values for given entities and store of specific attribute type

  • access: protected
array _getAttributeTypeValues (string $type, array $entityIds, integer $store_id)
  • string $type
  • array $entityIds
  • integer $store_id
_getAttributeValues (line 678)

Return attribute values for given entities and store

  • access: protected
array _getAttributeValues (array $entityIds, integer $store_id)
  • array $entityIds
  • integer $store_id
_getEavColumns (line 592)

Return array of eav columns, skip attribute with static type

  • access: protected
array _getEavColumns ()
_getStaticColumns (line 535)

Return array of static columns

  • access: protected
array _getStaticColumns ()
_getTableSqlSchema (line 388)
  • access: protected
void _getTableSqlSchema ([ $storeId = 0])
  • $storeId
_initInactiveCategoryIds (line 152)

Retreive inactive categories ids

  • access: protected
_loadNodes (line 181)

Load nodes by parent id

  • access: protected
Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Flat _loadNodes ([ $parentNode = null], [integer $recursionLevel = 0], [integer $storeId = 0], integer $parentId)
  • integer $parentId
  • integer $recursionLevel
  • integer $storeId
  • $parentNode
_prepareDataForAllFields (line 998)

Prepare array of category data to insert or update.

array( 'field_name' => 'value' )

  • access: protected
array _prepareDataForAllFields (Mage_Catalog_Model_Category $category, [array $replaceFields = array()])
_prepareValuesToInsert (line 472)

Prepare array of column and columnValue pairs

  • access: protected
array _prepareValuesToInsert (array $data)
  • array $data
_synchronize (line 763)

Synchronize flat data with eav model for category

  • access: protected
Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Flat _synchronize (Varien_Object $category)
  • Varien_Object $category

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 17:02:38 +0200 by phpDocumentor 1.4.3