Protected Member Functions | |
_beforeSave () |
Definition at line 27 of file Package.php.
_beforeSave | ( | ) | [protected] |
Processing object before save data
Reimplemented from Mage_Core_Model_Abstract.
Definition at line 29 of file Package.php.
00030 { 00031 $value = $this->getValue(); 00032 if (empty($value)) { 00033 throw new Exception('package name is empty.'); 00034 } 00035 if (!Mage::getDesign()->designPackageExists($value)) { 00036 throw new Exception('package with this name does not exist and cannot be set.'); 00037 } 00038 }