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

Class: Services_ExchangeRates_Countries_UN

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

Class Overview

Services_ExchangeRates_Common
   |
   --Services_ExchangeRates_Countries_UN

United Nations country 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

[line 44]
United Nations country codes driver

Retrieves the ISO 3166 country codes in XML format from the United Nations Economic Commission for Europe. This file is cached for 1 month by default, since it hardly ever changes.



[ Top ]


Class Variables

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

[line 50]

URL of XML feed

Type:   string


[ Top ]



Method Detail

retrieve   [line 59]

array retrieve( int $cacheLength, $cacheDir)

Retrieves currency codes and their associated names (e.g. USD => US Dollar) from the UN or the cache. The default cache length is 1 month.
  • Return: Array of currency codes to currency names

Parameters:

int   $cacheLength   —  Optionally override default 1 month cache length (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.