Services_ExchangeRates
[ class tree: Services_ExchangeRates ] [ index: Services_ExchangeRates ] [ all elements ]

Class: Services_ExchangeRates_Currencies_UN

Source Location: /Services_ExchangeRates-0.5.3/ExchangeRates/Currencies_UN.php

Class Overview

Services_ExchangeRates_Common
   |
   --Services_ExchangeRates_Currencies_UN

United Nations Currency Codes Driver


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: Services_ExchangeRates_Common

Services_ExchangeRates_Common::retrieveFile()
Retrieves data from cache, if it's there. If it is, but it's expired,
Services_ExchangeRates_Common::retrieveXML()
Downloads XML file or returns it from cache

Class Details



[ Top ]


Class Variables

$feedUrl =  'http://www.unece.org/etrades/unedocs/repository/codelists/xml/CurrencyCodeList.xml'

[line 54]

URL of XML feed

Type:   string


[ Top ]



Method Detail

retrieve   [line 73]

array retrieve( int $cacheLength, $cacheDir)

Downloads exchange rates in terms of the Euro from the European Central Bank. This information is updated daily, and is cached by default for 1 hour.

Parameters:

int   $cacheLength   —  Length of time to cache (in seconds)
   $cacheDir   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:04:17 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.