Protected Member Functions | |
_getAllowedCurrencies () | |
_getInstalledCurrencies () | |
_getCurrencyBase () | |
_getCurrencyDefault () |
Definition at line 37 of file Abstract.php.
_getAllowedCurrencies | ( | ) | [protected] |
Retrieve allowed currencies for current scope
Definition at line 44 of file Abstract.php.
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 }
_getCurrencyBase | ( | ) | [protected] |
Retrieve Base Currency value for current scope
Definition at line 67 of file Abstract.php.
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 }
_getCurrencyDefault | ( | ) | [protected] |
Retrieve Default desplay Currency value for current scope
Definition at line 84 of file Abstract.php.
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 }
_getInstalledCurrencies | ( | ) | [protected] |
Retrieve Installed Currencies
Definition at line 57 of file Abstract.php.
00058 { 00059 return split(',', Mage::getStoreConfig('system/currency/installed')); 00060 }