Protected Member Functions | |
_beforeSave () |
Definition at line 35 of file Address.php.
_beforeSave | ( | ) | [protected] |
Processing object before save data
Reimplemented from Mage_Core_Model_Abstract.
Definition at line 37 of file Address.php.
00038 { 00039 $value = $this->getValue(); 00040 if (!Zend_Validate::is($value, 'EmailAddress')) { 00041 Mage::throwException(Mage::helper('adminhtml')->__('Invalid email address "%s"', $value)); 00042 } 00043 return $this; 00044 }