Protected Member Functions | |
_afterSave () |
Definition at line 37 of file Default.php.
_afterSave | ( | ) | [protected] |
Check default currency is available in installed currencies Check default currency is available in allowed currencies
Reimplemented from Mage_Core_Model_Abstract.
Definition at line 45 of file Default.php.
00046 { 00047 if (!in_array($this->getValue(), $this->_getInstalledCurrencies())) { 00048 Mage::throwException(Mage::helper('adminhtml')->__('Selected default display currency is not available in installed currencies')); 00049 } 00050 00051 if (!in_array($this->getValue(), $this->_getAllowedCurrencies())) { 00052 Mage::throwException(Mage::helper('adminhtml')->__('Selected default display currency is not available in allowed currencies')); 00053 } 00054 00055 return $this; 00056 }