VirtueMart  3.2.14.9808
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
convertECB Class Reference

Public Member Functions

 convert ($amountA, $currA='', $currB='', $a2rC=true, $relatedCurrency= 'EUR')
 

Static Public Member Functions

static getSetExchangeRates ($ecb_filename)
 

Public Attributes

 $document_address = 'http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml'
 
 $info_address = 'http://www.ecb.int/stats/eurofxref/'
 
 $supplier = 'European Central Bank'
 

Detailed Description

This class uses the currency rates provided by an XML file from the European Central Bank Requires cURL or allow_url_fopen

Member Function Documentation

convertECB::convert (   $amountA,
  $currA = '',
  $currB = '',
  $a2rC = true,
  $relatedCurrency = 'EUR' 
)

Converts an amount from one currency into another using the rate conversion table from the European Central Bank

Parameters
float$amountA
string$currAdefaults to $vendor_currency
string$currBdefaults to
Returns
mixed The converted amount when successful, false on failure
static convertECB::getSetExchangeRates (   $ecb_filename)
static

Member Data Documentation

convertECB::$document_address = 'http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml'
convertECB::$info_address = 'http://www.ecb.int/stats/eurofxref/'
convertECB::$supplier = 'European Central Bank'

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