Mage_Customer_Model_Customer_Attribute_Backend_Store Class Reference

Inheritance diagram for Mage_Customer_Model_Customer_Attribute_Backend_Store:

Mage_Eav_Model_Entity_Attribute_Backend_Abstract Mage_Eav_Model_Entity_Attribute_Backend_Interface

List of all members.

Public Member Functions

 beforeSave ($object)


Detailed Description

Definition at line 34 of file Store.php.


Member Function Documentation

beforeSave ( object  ) 

Reimplemented from Mage_Eav_Model_Entity_Attribute_Backend_Abstract.

Definition at line 36 of file Store.php.

00037     {
00038         if ($object->getId()) {
00039             return $this;
00040         }
00041 
00042         if (!$object->hasStoreId()) {
00043             $object->setStoreId(Mage::app()->getStore()->getId());
00044         }
00045 
00046         if (!$object->hasData('created_in')) {
00047             $object->setData('created_in', Mage::app()->getStore($object->getStoreId())->getName());
00048         }
00049         return $this;
00050     }


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

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