Class Mage_Directory_Model_Mysql4_Currency

Description

Currency Mysql4 resourcre model

Located in /Directory/Model/Mysql4/Currency.php (line 34)

Mage_Core_Model_Resource_Abstract
   |
   --Mage_Core_Model_Mysql4_Abstract
      |
      --Mage_Directory_Model_Mysql4_Currency
Variable Summary
static array $_rateCache
Method Summary
Mage_Directory_Model_Mysql4_Currency __construct ()
float getAnyRate (string $currencyFrom, string $currencyTo)
array getConfigCurrencies (object $model, string $path)
array getCurrencyRates (string|array $currency, [array $toCurrencies = null])
float getRate (string $currencyFrom, string $currencyTo)
void saveRates (array $rates)
void _construct ()
array _getRatesByCode (string $code, [array $toCurrencies = null])
Variables
Methods
Constructor __construct (line 55)
  • access: public
Mage_Directory_Model_Mysql4_Currency __construct ()

Redefinition of:
Mage_Core_Model_Resource_Abstract::__construct()
getAnyRate (line 104)

Retrieve currency rate (base=>allowed or allowed=>base)

  • access: public
float getAnyRate (string $currencyFrom, string $currencyTo)
  • string $currencyFrom
  • string $currencyTo
getConfigCurrencies (line 172)

Retrieve config currency data by config path

  • access: public
array getConfigCurrencies (object $model, string $path)
  • object $model
  • string $path
getCurrencyRates (line 198)

Retieve currency rates

  • access: public
array getCurrencyRates (string|array $currency, [array $toCurrencies = null])
  • string|array $currency
  • array $toCurrencies
getRate (line 70)

Retrieve currency rate (only base=>allowed)

  • access: public
float getRate (string $currencyFrom, string $currencyTo)
  • string $currencyFrom
  • string $currencyTo
saveRates (line 138)

Saving currency rates

  • access: public
void saveRates (array $rates)
  • array $rates
_construct (line 50)
  • access: protected
void _construct ()

Redefinition of:
Mage_Core_Model_Resource_Abstract::_construct()
Resource initialization
_getRatesByCode (line 219)

Protected method used by getCurrencyRates() method

  • access: protected
array _getRatesByCode (string $code, [array $toCurrencies = null])
  • string $code
  • array $toCurrencies

Inherited Methods

Inherited From Mage_Core_Model_Mysql4_Abstract

Mage_Core_Model_Mysql4_Abstract::addUniqueField()
Mage_Core_Model_Mysql4_Abstract::afterLoad()
Mage_Core_Model_Mysql4_Abstract::delete()
Mage_Core_Model_Mysql4_Abstract::forsedSave()
Mage_Core_Model_Mysql4_Abstract::getChecksum()
Mage_Core_Model_Mysql4_Abstract::getIdFieldName()
Mage_Core_Model_Mysql4_Abstract::getMainTable()
Mage_Core_Model_Mysql4_Abstract::getReadConnection()
Mage_Core_Model_Mysql4_Abstract::getTable()
Mage_Core_Model_Mysql4_Abstract::getUniqueFields()
Mage_Core_Model_Mysql4_Abstract::getValueTable()
Mage_Core_Model_Mysql4_Abstract::hasDataChanged()
Mage_Core_Model_Mysql4_Abstract::load()
Mage_Core_Model_Mysql4_Abstract::resetUniqueField()
Mage_Core_Model_Mysql4_Abstract::save()
Mage_Core_Model_Mysql4_Abstract::unserializeFields()
Mage_Core_Model_Mysql4_Abstract::_afterDelete()
Mage_Core_Model_Mysql4_Abstract::_afterLoad()
Mage_Core_Model_Mysql4_Abstract::_afterSave()
Mage_Core_Model_Mysql4_Abstract::_beforeDelete()
Mage_Core_Model_Mysql4_Abstract::_beforeSave()
Mage_Core_Model_Mysql4_Abstract::_checkUnique()
Mage_Core_Model_Mysql4_Abstract::_getConnection()
Mage_Core_Model_Mysql4_Abstract::_getLoadSelect()
Mage_Core_Model_Mysql4_Abstract::_getReadAdapter()
Mage_Core_Model_Mysql4_Abstract::_getWriteAdapter()
Mage_Core_Model_Mysql4_Abstract::_init()
Mage_Core_Model_Mysql4_Abstract::_initUniqueFields()
Mage_Core_Model_Mysql4_Abstract::_prepareDataForSave()
Mage_Core_Model_Mysql4_Abstract::_prepareDataForTable()
Mage_Core_Model_Mysql4_Abstract::_prepareValueForSave()
Mage_Core_Model_Mysql4_Abstract::_serializeFields()
Mage_Core_Model_Mysql4_Abstract::_setMainTable()
Mage_Core_Model_Mysql4_Abstract::_setResource()

Inherited From Mage_Core_Model_Resource_Abstract

Mage_Core_Model_Resource_Abstract::__construct()
Mage_Core_Model_Resource_Abstract::addCommitCallback()
Mage_Core_Model_Resource_Abstract::beginTransaction()
Mage_Core_Model_Resource_Abstract::commit()
Mage_Core_Model_Resource_Abstract::formatDate()
Mage_Core_Model_Resource_Abstract::mktime()
Mage_Core_Model_Resource_Abstract::rollBack()
Mage_Core_Model_Resource_Abstract::_construct()
Mage_Core_Model_Resource_Abstract::_getReadAdapter()
Mage_Core_Model_Resource_Abstract::_getWriteAdapter()
Mage_Core_Model_Resource_Abstract::_serializeField()
Mage_Core_Model_Resource_Abstract::_unserializeField()
Class Constants

Documentation generated on Fri, 11 Feb 2011 17:00:06 +0200 by phpDocumentor 1.4.3