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

Class: Services_Weather

Source Location: /Services_Weather-1.4.7/Weather.php

Class Overview

This class acts as an interface to various online weather-services.



  • Release: 1.4.7


  • 2005-2011 Alexander Wirtz


Inherited Variables

Inherited Methods

Class Details

[line 99]
This class acts as an interface to various online weather-services.

[ Top ]

Method Detail

apiVersion   [line 184]

string apiVersion( )

For your convenience, when I come up with changes in the API...
  • Access: public

[ Top ]

isError   [line 237]

bool isError( PEAR_Error|mixed $value)

Checks for an error object, same as in PEAR
  • Access: public


PEAR_Error|mixed   $value     

[ Top ]

service   [line 142]

PEAR_Error|object &service( string $service, [array $options = null])

Factory for creating the services-objects

Usable keys for the options array are:

  • debug enables debugging output
--- Common Options
  • cacheType defines what type of cache to use
  • cacheOptions passes cache options
  • unitsFormat use (US)-standard, metric or custom units
  • customUnitsFormat defines the customized units format
  • httpTimeout sets timeout for HTTP requests
  • httpProxy sets proxy for HTTP requests, please use the notation http://[user[:pass]@]host[:port]
  • dateFormat string to use for date output
  • timeFormat string to use for time output
--- EJSE Options
  • none
--- GlobalWeather Options
  • none
--- METAR/TAF Options
  • dsn String for defining the DB connection
  • dbOptions passes DB options
  • sourceMetar http, ftp or file - type of data-source for METAR
of METAR information
  • sourceTaf http, ftp or file - type of data-source for TAF
of TAF information --- Options
  • partnerID You'll receive these keys after registering
  • licenseKey with the XML-service
  • preFetch Enables pre-fetching of data in one single request

  • Throws: PEAR_Error
  • Access: public


string   $service     
array   $options     

[ Top ]

Documentation generated on Mon, 22 Oct 2012 13:30:18 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.