Public Member Functions | |
deleteScripts ($storeId) | |
Protected Attributes | |
$_entityType = 'category' |
Definition at line 35 of file Category.php.
deleteScripts | ( | $ | storeId | ) |
Removing scripts assigned to entity
integer | $storeId |
We need check category children ids
Reimplemented from Mage_GoogleOptimizer_Model_Code.
Definition at line 46 of file Category.php.
00047 { 00048 $category = $this->getEntity(); 00049 if ($category) { 00050 /** 00051 * We need check category children ids 00052 */ 00053 $ids = $category->getDeletedChildrenIds(); 00054 if (is_array($ids)) { 00055 $ids[] = $category->getId(); 00056 } else { 00057 $ids = array($category->getId()); 00058 } 00059 $this->setEntityIds($ids); 00060 } 00061 return parent::deleteScripts($storeId); 00062 }
$_entityType = 'category' [protected] |