00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 abstract class Mage_Adminhtml_Model_System_Config_Backend_Currency_Abstract extends Mage_Core_Model_Config_Data
00038 {
00039
00040
00041
00042
00043
00044 protected function _getAllowedCurrencies()
00045 {
00046 if ($this->getData('groups/options/fields/allow/inherit')) {
00047 return split(',', Mage::getConfig()->getNode('currency/options/allow', $this->getScope(), $this->getScopeId()));
00048 }
00049 return $this->getData('groups/options/fields/allow/value');
00050 }
00051
00052
00053
00054
00055
00056
00057 protected function _getInstalledCurrencies()
00058 {
00059 return split(',', Mage::getStoreConfig('system/currency/installed'));
00060 }
00061
00062
00063
00064
00065
00066
00067 protected function _getCurrencyBase()
00068 {
00069 if (!$value = $this->getData('groups/options/fields/base/value')) {
00070 $value = Mage::getConfig()->getNode(
00071 Mage_Directory_Model_Currency::XML_PATH_CURRENCY_BASE,
00072 $this->getScope(),
00073 $this->getScopeId()
00074 );
00075 }
00076 return strval($value);
00077 }
00078
00079
00080
00081
00082
00083
00084 protected function _getCurrencyDefault()
00085 {
00086 if (!$value = $this->getData('groups/options/fields/default/value')) {
00087 $value = Mage::getConfig()->getNode(
00088 Mage_Directory_Model_Currency::XML_PATH_CURRENCY_DEFAULT,
00089 $this->getScope(),
00090 $this->getScopeId()
00091 );
00092 }
00093 return strval($value);
00094 }
00095 }