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

Class: Services_ExchangeRates_Common

Source Location: /Services_ExchangeRates-0.8.0/Services/ExchangeRates/Common.php

Class Overview


Common functions for data retrieval


Variables

Methods


Child classes:

Services_ExchangeRates_Currencies
Common functions for data retrieval
Services_ExchangeRates_Rates
Common functions for data retrieval

Inherited Variables

Inherited Methods


Class Details

[line 38]
Common functions for data retrieval

Provides base functions to retrieve data feeds in different formats.



[ Top ]


Class Variables

$transport =

[line 40]


Type:   mixed


[ Top ]



Method Detail

Services_ExchangeRates_Common (Constructor)   [line 42]

Services_ExchangeRates_Common Services_ExchangeRates_Common( $transport)


Parameters:

   $transport     

[ Top ]

retrieveFile   [line 60]

string retrieveFile( string $url)

Retrieves data
  • Return: File contents

Parameters:

string   $url     URL of remote file to retrieve

[ Top ]

retrieveXML   [line 71]

object XML_Tree retrieveXML( string $url, int 1)

Downloads XML file or returns it from cache
  • Return: object

Parameters:

int   1     Length of time to cache
string   $url     URL of XML file

[ Top ]

setTransport   [line 50]

void setTransport( $transport)


Parameters:

   $transport     

[ Top ]


Documentation generated on Tue, 23 Oct 2012 22:30:04 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.