Class Mage_Catalog_Model_Resource_Eav_Mysql4_Category

Description

Catalog category model

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

Mage_Core_Model_Resource_Abstract
   |
   --Mage_Eav_Model_Entity_Abstract
      |
      --Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract
         |
         --Mage_Catalog_Model_Resource_Eav_Mysql4_Category
Variable Summary
int $_storeId
Varien_Data_Tree_Db $_tree
Method Summary
Mage_Catalog_Model_Resource_Eav_Mysql4_Category __construct ()
bool checkId (int $id)
void findWhereAttributeIs ( $entityIdsFilter,  $attribute,  $expectedValue)
Varien_Data_Tree_Node_Collection|Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Collection getCategories (integer $parent, [integer $recursionLevel = 0], [boolean|string $sorted = false], [boolean $asCollection = false], [boolean $toLoad = true])
string getCategoryPathById (int $categoryId)
array getChildren (Mage_Catalog_Model_Category $category, [boolean $recursive = true])
int getChildrenAmount (Mage_Catalog_Model_Category $category, [bool $isActiveFlag = true])
int getChildrenCount (int $categoryId)
unknown getProductCount (unknown_type $category)
integer getStoreId ()
boolean isForbiddenToDelete (integer $categoryId)
Mage_Catalog_Model_Resource_Eav_Mysql4_Category move (int $categoryId, int $newParentId)
Mage_Catalog_Model_Resource_Eav_Mysql4_Category refreshProductIndex ([array $categoryIds = array()], [ $productIds = array()], [ $storeIds = array()])
array verifyIds ( $ids)
int _getMaxPosition (string $path)
Varien_Data_Tree_Db _getTree ()
int _processPositions (Mage_Catalog_Model_Category $category, Mage_Catalog_Model_Category $newParent, null|int $afterCategoryId)
Mage_Catalog_Model_Resource_Eav_Mysql4_Category _refreshRootCategoryProductIndex ([array|int $productIds = array()], [array|int $storeIds = array()])
unknown _saveInStores ( $object)
void _updateCategoryPath ( $category,  $path)
Variables
Methods
Constructor __construct (line 67)

Class constructor

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Category __construct ()

Redefinition of:
Mage_Core_Model_Resource_Abstract::__construct()
changeParent (line 728)

Move category to another parent node

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Category changeParent (Mage_Catalog_Model_Category $category, Mage_Catalog_Model_Category $newParent, [null|int $afterCategoryId = null])
checkId (line 414)

Check if category id exist

  • access: public
bool checkId (int $id)
  • int $id
deleteChildren (line 149)

Delete children categories of specific category

  • access: public
  • Varien_Object $object
findWhereAttributeIs (line 491)
  • access: public
void findWhereAttributeIs ( $entityIdsFilter,  $attribute,  $expectedValue)
  • $entityIdsFilter
  • $attribute
  • $expectedValue
getAllChildren (line 660)

Return all children ids of category (with category id)

  • access: public
array getAllChildren (Mage_Catalog_Model_Category $category)
getCategories (line 535)

Retrieve categories

  • access: public
Varien_Data_Tree_Node_Collection|Mage_Catalog_Model_Resource_Eav_Mysql4_Category_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
getCategoryPathById (line 712)

Get category path value by its id

  • access: public
string getCategoryPathById (int $categoryId)
  • int $categoryId
getChildren (line 625)

Return children ids of category

  • access: public
array getChildren (Mage_Catalog_Model_Category $category, [boolean $recursive = true])
getChildrenAmount (line 448)

Get count of active/not active children categories

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

Return child categories

  • access: public
unknown getChildrenCategories (Mage_Catalog_Model_Category $category)
getChildrenCount (line 397)

Get chlden categories count

  • access: public
int getChildrenCount (int $categoryId)
  • int $categoryId
getParentCategories (line 557)

Return parent categories of category

  • access: public
array getParentCategories (Mage_Catalog_Model_Category $category)
getParentDesignCategory (line 577)

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 508)

Get products count in category

  • access: public
unknown getProductCount (unknown_type $category)
  • unknown_type $category
getProductsPosition (line 382)

Get positions of associated to category products

  • access: public
array getProductsPosition (Mage_Catalog_Model_Category $category)
getStoreId (line 95)

Return store id

  • access: public
integer getStoreId ()
getStoreIds (line 901)

Get store identifiers where category is presented

  • deprecated: after 1.3.2.2 moved to model
  • access: public
array getStoreIds (Mage_Catalog_Model_Category $category)
isForbiddenToDelete (line 695)

Check category is forbidden to delete.

If category is root and assigned to store group return false

  • access: public
boolean isForbiddenToDelete (integer $categoryId)
  • integer $categoryId
isInRootCategoryList (line 675)

Check is category in list of store categories

  • access: public
boolean isInRootCategoryList (Mage_Catalog_Model_Category $category)
move (line 935)

Move category to another parent

  • deprecated: after 1.4.0.0-Alpha we are using changeParent method
  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Category move (int $categoryId, int $newParentId)
  • int $categoryId
  • int $newParentId
refreshProductIndex (line 974)

Rebuild associated products index

  • deprecated: after 1.4.0.0-Alpha, functionality moved to Mage_Catalog_Model_Category_Indexer_Produxt
  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Category refreshProductIndex ([array $categoryIds = array()], [ $productIds = array()], [ $storeIds = array()])
  • array $categoryIds
  • $productIds
  • $storeIds
setStoreId (line 84)

Set store Id

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Category setStoreId (integer $storeId)
  • integer $storeId
verifyIds (line 428)

Check array of category identifiers

  • access: public
array verifyIds ( $ids)
  • array $ids
_afterSave (line 222)

Process category data after save category object save related products ids and update path value

  • access: protected
  • Varien_Object $object

Redefinition of:
Mage_Eav_Model_Entity_Abstract::_afterSave()
After Save Entity process
_beforeDelete (line 125)

Process category data before delete update children count for parent category delete child categories

  • access: protected
  • Varien_Object $object

Redefinition of:
Mage_Eav_Model_Entity_Abstract::_beforeDelete()
Before Delete Entity process
_beforeSave (line 189)

Process category data before saving prepare path and increment children count for parent categories

  • access: protected
  • Varien_Object $object

Redefinition of:
Mage_Eav_Model_Entity_Abstract::_beforeSave()
Before delete Entity process
_getIsActiveAttributeId (line 477)

Get "is_active" attribute identifier

  • access: protected
int _getIsActiveAttributeId ()
_getMaxPosition (line 260)

Get maximum position of child categories by specific tree path

  • access: protected
int _getMaxPosition (string $path)
  • string $path
_getTree (line 108)

Retrieve category tree object

  • access: protected
Varien_Data_Tree_Db _getTree ()
_processPositions (line 781)

Process positions of old parent category children and new parent category children.

Get position for moved category

  • access: protected
int _processPositions (Mage_Catalog_Model_Category $category, Mage_Catalog_Model_Category $newParent, null|int $afterCategoryId)
_refreshRootCategoryProductIndex (line 1106)

Refresh Category Product Index for Store Root Catgory

  • deprecated: after 1.4.0.0-Alpha, functionality moved to Mage_Catalog_Model_Category_Indexer_Produxt
  • access: protected
Mage_Catalog_Model_Resource_Eav_Mysql4_Category _refreshRootCategoryProductIndex ([array|int $productIds = array()], [array|int $storeIds = array()])
  • array|int $productIds
  • array|int $storeIds
_saveCategoryProducts (line 281)

Save category products relation

  • access: protected
_saveCountChidren (line 878)
  • deprecated: since 1.1.7
  • access: protected
Mage_Catalog_Model_Resource_Eav_Mysql4_Category _saveCountChidren (Varien_Object $object)
  • Varien_Object $object
_saveInStores (line 837)
  • deprecated:
  • access: protected
unknown _saveInStores ( $object)
  • Varien_Object $object
_savePath (line 242)

Update path field

  • access: protected
_updateCategoryPath (line 856)
  • deprecated:
  • access: protected
void _updateCategoryPath ( $category,  $path)
  • $category
  • $path

Inherited Methods

Inherited From Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract

Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::getAttributeRawValue()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::getDefaultStoreId()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::load()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_canUpdateAttribute()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_collectOrigData()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_deleteAttributes()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_getDefaultAttributeModel()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_getLoadAttributesSelect()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_getOrigObject()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_insertAttribute()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_isApplicableAttribute()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_isAttributeValueEmpty()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_isCallableAttributeInstance()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_prepareLoadSelect()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_prepareValueForSave()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_saveAttributeValue()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_setAttribteValue()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_updateAttribute()
Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract::_updateAttributeForStore()

Inherited From Mage_Eav_Model_Entity_Abstract

Mage_Eav_Model_Entity_Abstract::addAttribute()
Mage_Eav_Model_Entity_Abstract::attributesCompare()
Mage_Eav_Model_Entity_Abstract::checkAttributeUniqueValue()
Mage_Eav_Model_Entity_Abstract::delete()
Mage_Eav_Model_Entity_Abstract::getAttribute()
Mage_Eav_Model_Entity_Abstract::getAttributesByCode()
Mage_Eav_Model_Entity_Abstract::getAttributesById()
Mage_Eav_Model_Entity_Abstract::getAttributesByTable()
Mage_Eav_Model_Entity_Abstract::getDefaultAttributes()
Mage_Eav_Model_Entity_Abstract::getDefaultAttributeSourceModel()
Mage_Eav_Model_Entity_Abstract::getEntityIdField()
Mage_Eav_Model_Entity_Abstract::getEntityTable()
Mage_Eav_Model_Entity_Abstract::getEntityType()
Mage_Eav_Model_Entity_Abstract::getIdFieldName()
Mage_Eav_Model_Entity_Abstract::getReadConnection()
Mage_Eav_Model_Entity_Abstract::getSortedAttributes()
Mage_Eav_Model_Entity_Abstract::getTable()
Mage_Eav_Model_Entity_Abstract::getType()
Mage_Eav_Model_Entity_Abstract::getTypeId()
Mage_Eav_Model_Entity_Abstract::getValueEntityIdField()
Mage_Eav_Model_Entity_Abstract::getValueTablePrefix()
Mage_Eav_Model_Entity_Abstract::getWriteConnection()
Mage_Eav_Model_Entity_Abstract::isAttributeStatic()
Mage_Eav_Model_Entity_Abstract::isPartialLoad()
Mage_Eav_Model_Entity_Abstract::isPartialSave()
Mage_Eav_Model_Entity_Abstract::load()
Mage_Eav_Model_Entity_Abstract::loadAllAttributes()
Mage_Eav_Model_Entity_Abstract::save()
Mage_Eav_Model_Entity_Abstract::saveAttribute()
Mage_Eav_Model_Entity_Abstract::setConnection()
Mage_Eav_Model_Entity_Abstract::setNewIncrementId()
Mage_Eav_Model_Entity_Abstract::setType()
Mage_Eav_Model_Entity_Abstract::unsetAttributes()
Mage_Eav_Model_Entity_Abstract::validate()
Mage_Eav_Model_Entity_Abstract::walkAttributes()
Mage_Eav_Model_Entity_Abstract::_afterDelete()
Mage_Eav_Model_Entity_Abstract::_afterLoad()
Mage_Eav_Model_Entity_Abstract::_afterSave()
Mage_Eav_Model_Entity_Abstract::_afterSetConfig()
Mage_Eav_Model_Entity_Abstract::_beforeDelete()
Mage_Eav_Model_Entity_Abstract::_beforeSave()
Mage_Eav_Model_Entity_Abstract::_canUpdateAttribute()
Mage_Eav_Model_Entity_Abstract::_collectSaveData()
Mage_Eav_Model_Entity_Abstract::_construct()
Mage_Eav_Model_Entity_Abstract::_deleteAttributes()
Mage_Eav_Model_Entity_Abstract::_getDefaultAttribute()
Mage_Eav_Model_Entity_Abstract::_getDefaultAttributeModel()
Mage_Eav_Model_Entity_Abstract::_getDefaultAttributes()
Mage_Eav_Model_Entity_Abstract::_getLoadAttributesSelect()
Mage_Eav_Model_Entity_Abstract::_getLoadRowSelect()
Mage_Eav_Model_Entity_Abstract::_getOrigObject()
Mage_Eav_Model_Entity_Abstract::_getReadAdapter()
Mage_Eav_Model_Entity_Abstract::_getStaticFieldProperties()
Mage_Eav_Model_Entity_Abstract::_getWriteAdapter()
Mage_Eav_Model_Entity_Abstract::_insertAttribute()
Mage_Eav_Model_Entity_Abstract::_isApplicableAttribute()
Mage_Eav_Model_Entity_Abstract::_isAttributeValueEmpty()
Mage_Eav_Model_Entity_Abstract::_isCallableAttributeInstance()
Mage_Eav_Model_Entity_Abstract::_prepareLoadSelect()
Mage_Eav_Model_Entity_Abstract::_prepareStaticValue()
Mage_Eav_Model_Entity_Abstract::_prepareValueForSave()
Mage_Eav_Model_Entity_Abstract::_processAttributeValues()
Mage_Eav_Model_Entity_Abstract::_processSaveData()
Mage_Eav_Model_Entity_Abstract::_saveAttribute()
Mage_Eav_Model_Entity_Abstract::_setAttribteValue()
Mage_Eav_Model_Entity_Abstract::_updateAttribute()

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()

Documentation generated on Fri, 11 Feb 2011 16:57:29 +0200 by phpDocumentor 1.4.3