Mage_Catalog_Model_Entity_Attribute Class Reference

Inheritance diagram for Mage_Catalog_Model_Entity_Attribute:

Mage_Eav_Model_Entity_Attribute Mage_Eav_Model_Entity_Attribute_Abstract Mage_Core_Model_Abstract Mage_Eav_Model_Entity_Attribute_Interface Varien_Object

List of all members.

Public Attributes

const MODULE_NAME = 'Mage_Catalog'

Protected Member Functions

 _beforeSave ()
 _afterSave ()

Protected Attributes

 $_eventPrefix = 'catalog_entity_attribute'
 $_eventObject = 'attribute'


Detailed Description

Product attribute extension with event dispatching

Author:
Magento Core Team <core@magentocommerce.com>

Definition at line 32 of file Attribute.php.


Member Function Documentation

_afterSave (  )  [protected]

Processing object after save data

Returns:
Mage_Core_Model_Abstract

Fix saving attribute in admin

Reimplemented from Mage_Eav_Model_Entity_Attribute.

Definition at line 54 of file Attribute.php.

00055     {
00056         /**
00057          * Fix saving attribute in admin
00058          */
00059         Mage::getSingleton('eav/config')->clear();
00060         return parent::_afterSave();
00061     }

_beforeSave (  )  [protected]

Processing object before save data

Returns:
Mage_Core_Model_Abstract

Reimplemented from Mage_Eav_Model_Entity_Attribute.

Definition at line 43 of file Attribute.php.

00044     {
00045         $this->setData('modulePrefix', self::MODULE_NAME);
00046         return parent::_beforeSave();
00047     }


Member Data Documentation

$_eventObject = 'attribute' [protected]

Reimplemented from Mage_Eav_Model_Entity_Attribute.

Definition at line 35 of file Attribute.php.

$_eventPrefix = 'catalog_entity_attribute' [protected]

Reimplemented from Mage_Eav_Model_Entity_Attribute.

Definition at line 34 of file Attribute.php.

const MODULE_NAME = 'Mage_Catalog'

Definition at line 36 of file Attribute.php.


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

Generated on Sat Jul 4 17:23:38 2009 for Magento by  doxygen 1.5.8