Mage_Adminhtml_Model_System_Config_Backend_Currency_Abstract Class Reference

Inheritance diagram for Mage_Adminhtml_Model_System_Config_Backend_Currency_Abstract:

Mage_Core_Model_Config_Data Mage_Core_Model_Abstract Varien_Object Mage_Adminhtml_Model_System_Config_Backend_Currency_Allow Mage_Adminhtml_Model_System_Config_Backend_Currency_Base Mage_Adminhtml_Model_System_Config_Backend_Currency_Default

List of all members.

Protected Member Functions

 _getAllowedCurrencies ()
 _getInstalledCurrencies ()
 _getCurrencyBase ()
 _getCurrencyDefault ()


Detailed Description

Definition at line 37 of file Abstract.php.


Member Function Documentation

_getAllowedCurrencies (  )  [protected]

Retrieve allowed currencies for current scope

Returns:
array

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

Returns:
string

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

Returns:
string

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

Returns:
array

Definition at line 57 of file Abstract.php.

00058     {
00059         return split(',', Mage::getStoreConfig('system/currency/installed'));
00060     }


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