Class Mage_Catalog_Model_Resource_Category_Flat
Category flat model
- Mage_Core_Model_Resource_Abstract
- Mage_Core_Model_Resource_Db_Abstract
- Mage_Index_Model_Resource_Abstract
- Mage_Catalog_Model_Resource_Category_Flat
Direct known subclasses
Mage_Catalog_Model_Resource_Eav_Mysql4_Category_FlatCategory: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Catalog/Model/Resource/Category/Flat.php
protected
|
|
public
|
|
public
integer
|
|
public
string
|
|
public
string
|
#
getMainStoreTable( integer $storeId =
Return name of table for given $storeId. |
public
boolean
|
#
getUseStoreTables( )
Return true if need use for each store different table of flat categories data. |
public
|
|
protected
|
|
public
array
|
|
protected
|
#
_loadNodes(
Load nodes by parent id |
public
|
#
addChildNodes( array $children, string $path, Varien_Object $parent )
Creating sorted array of nodes |
public
array
|
|
public
array|Varien_Data_Collection
|
#
getCategories( integer $parent, integer $recursionLevel = 0, boolean|string $sorted = false, boolean $asCollection = false, boolean $toLoad = true )
Return array or collection of categories |
public
Varien_Object
|
|
public
boolean
|
|
public
|
|
protected
array
|
|
public
|
|
protected
|
|
protected
array
|
|
protected
array
|
|
protected
array
|
|
protected
array
|
#
_getAttributeValues( array $entityIds, integer $store_id )
Return attribute values for given entities and store |
protected
array
|
#
_getAttributeTypeValues( string $type, array $entityIds, integer $sid )
Return attribute values for given entities and store of specific attribute type |
public
|
|
protected
|
|
protected
|
|
public
|
#
synchronize(
Synchronize flat data with eav model. |
public
|
|
public
|
|
public
|
|
protected
array
|
#
_prepareDataForAllFields( Varien_Object $category, array $replaceFields = array() )
Prepare array of category data to insert or update. array( |
public
|
|
public
integer
|
#
getChildrenAmount(
Get count of active/not active children categories |
public
integer
|
|
public
array
|
#
getParentCategories(
Return parent categories of category |
public
|
#
getParentDesignCategory(
Return parent category of current category with own custom design settings |
public
array
|
#
getChildrenCategories(
Return children categories of category |
public
boolean
|
#
isInRootCategoryList(
Check is category in list of store categories |
public
array
|
#
getChildren(
Return children ids of category |
public
array
|
#
getAllChildren(
Return all children ids of category (with category id) |
public
boolean
|
|
public
array
|
#
getDesignUpdateData(
Get design update data of parent categories |
public
array
|
|
public
array
|
#
getStoresRootCategories( integer|array $storeIds = null )
Retrieve array with root category id per store |
protected
|
|
public
|
IDX_SUFFIX,
TMP_SUFFIX
|
protected
integer
|
$_storeId | null |
#
Store id |
protected
boolean
|
$_loaded | false |
#
Loaded |
protected
array
|
$_nodes | array() |
#
Nodes |
protected
array
|
$_columns | null |
#
Columns |
protected
array
|
$_columnsSql | null |
#
Columns sql |
protected
array
|
$_attributeCodes | null |
#
Attribute codes |
protected
array
|
$_inactiveCategoryIds | null |
#
Inactive categories ids |
protected
boolean
|
$_isRebuilt | null |
#
Is rebuild |
protected
array
|
$_storesRootCategories |
|
#
array with root category id per store |
protected
boolean
|
$_allowTableChanges | true |
#
Whether table changes are allowed |
$_isDisableKeys,
$_isNeedUseIdxTable
|
$_commitCallbacks
|