Protected Member Functions | |
_beforeSave () |
Definition at line 35 of file Sender.php.
_beforeSave | ( | ) | [protected] |
Processing object before save data
Reimplemented from Mage_Core_Model_Abstract.
Definition at line 37 of file Sender.php.
00038 { 00039 $value = $this->getValue(); 00040 if (!preg_match("/^[A-Za-z0-9_\s]+$/", $value)) { 00041 Mage::throwException(Mage::helper('adminhtml')->__('Invalid sender name "%s"', $value)); 00042 } 00043 return $this; 00044 }