Mage_GoogleOptimizer_Model_Code_Category Class Reference

Inheritance diagram for Mage_GoogleOptimizer_Model_Code_Category:

Mage_GoogleOptimizer_Model_Code Mage_Core_Model_Abstract Varien_Object

List of all members.

Public Member Functions

 deleteScripts ($storeId)

Protected Attributes

 $_entityType = 'category'


Detailed Description

Definition at line 35 of file Category.php.


Member Function Documentation

deleteScripts ( storeId  ) 

Removing scripts assigned to entity

Parameters:
integer $storeId
Returns:
Mage_Googleoptimizer_Model_Code

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     }


Member Data Documentation

$_entityType = 'category' [protected]

Reimplemented from Mage_GoogleOptimizer_Model_Code.

Definition at line 38 of file Category.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:18 2009 for Magento by  doxygen 1.5.8