Mage_Sales_Model_Mysql4_Quote_Address_Attribute_Backend_Region Class Reference

Inheritance diagram for Mage_Sales_Model_Mysql4_Quote_Address_Attribute_Backend_Region:

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 28 of file Region.php.


Member Function Documentation

beforeSave ( object  ) 

Reimplemented from Mage_Eav_Model_Entity_Attribute_Backend_Abstract.

Definition at line 31 of file Region.php.

00032     {
00033         if (is_numeric($object->getRegion())) {
00034             $region = Mage::getModel('directory/region')->load((int)$object->getRegion());
00035             if ($region) {
00036                 $object->setRegionId($region->getId());
00037                 $object->setRegion($region->getCode());
00038             }
00039         }
00040     }


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

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