Class Mage_Catalog_Model_Resource_Category
Catalog category model
- Mage_Core_Model_Resource_Abstract
- Mage_Eav_Model_Entity_Abstract implements Mage_Eav_Model_Entity_Interface
- Mage_Catalog_Model_Resource_Abstract
- Mage_Catalog_Model_Resource_Category
Direct known subclasses
Mage_Catalog_Model_Resource_Eav_Mysql4_CategoryCategory: 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.php
public
|
|
public
|
|
public
integer
|
|
protected
Varien_Data_Tree_Db
|
|
protected
|
#
_beforeDelete( Varien_Object $object )
Process category data before delete update children count for parent category delete child categories |
public
|
|
protected
|
#
_beforeSave( Varien_Object $object )
Process category data before saving prepare path and increment children count for parent categories |
protected
|
#
_afterSave( Varien_Object $object )
Process category data after save category object save related products ids and update path value |
protected
|
|
protected
integer
|
|
protected
|
|
public
array
|
#
getProductsPosition(
Get positions of associated to category products |
public
integer
|
|
public
boolean
|
|
public
array
|
|
public
integer
|
#
getChildrenAmount(
Get count of active/not active children categories |
protected
integer
|
|
public
array
|
#
findWhereAttributeIs( array|integer $entityIdsFilter,
Return entities where attribute value is |
public
integer
|
|
public
Varien_Data_Tree_Node_Collection|
|
#
getCategories( integer $parent, integer $recursionLevel = 0, boolean|string $sorted = false, boolean $asCollection = false, boolean $toLoad = true )
Retrieve categories |
public
array
|
|
public
|
#
getParentDesignCategory(
Return parent category of current category with own custom design settings |
public
|
|
public
array
|
#
getChildren(
Return children ids of category |
public
array
|
#
getAllChildren(
Return all children ids of category (with category id) |
public
boolean
|
#
isInRootCategoryList(
Check is category in list of store categories |
public
boolean
|
#
isForbiddenToDelete( integer $categoryId )
Check category is forbidden to delete. If category is root and assigned to store group return false |
public
string
|
|
public
|
#
changeParent(
Move category to another parent node |
protected
integer
|
#
_processPositions(
Process positions of old parent category children and new parent category children. Get position for moved category |
protected
Varien_Data_Tree_Db
|
$_tree |
|
#
Category tree object |
protected
string
|
$_categoryProductTable |
|
#
Catalog products table name |
protected
integer
|
$_isActiveAttributeId | null |
#
Id of 'is_active' category attribute |
protected
integer
|
$_storeId | null |
#
Store id |
$_attributes
|
$_commitCallbacks
|