VirtueMart
3.2.14.9808
|
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' | |
This class uses the currency rates provided by an XML file from the European Central Bank Requires cURL or allow_url_fopen
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
float | $amountA | |
string | $currA | defaults to $vendor_currency |
string | $currB | defaults to |
|
static |
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' |