Mage_Adminhtml_Model_System_Config_Backend_Currency_Default Class Reference

Inheritance diagram for Mage_Adminhtml_Model_System_Config_Backend_Currency_Default:

Mage_Adminhtml_Model_System_Config_Backend_Currency_Abstract Mage_Core_Model_Config_Data Mage_Core_Model_Abstract Varien_Object

List of all members.

Protected Member Functions

 _afterSave ()


Detailed Description

Definition at line 37 of file Default.php.


Member Function Documentation

_afterSave (  )  [protected]

Check default currency is available in installed currencies Check default currency is available in allowed currencies

Returns:
Mage_Adminhtml_Model_System_Config_Backend_Currency_Default

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     }


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

Generated on Sat Jul 4 17:23:13 2009 for Magento by  doxygen 1.5.8