Services_Weather::service() – Factory for creating the services-objects


require_once '/Weather.php';

PEAR_Error|object& Services_Weather::service ( string $service , array $options = null )


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

  • dateFormat string to use for date output

  • timeFormat string to use for time output

--- EJSE Options

  • none

--- GlobalWeather Options

  • none

--- METAR Options

  • dsn String for defining the DB connection

  • dbOptions passes DB options

  • source http, ftp or file - type of data-source

  • sourcePath where to look for the source, URI or filepath

--- Options

  • partnerID You'll receive these keys after registering

  • licenseKey with the XML-service


string $service

array $options


throws PEAR_Error



This function can not be called statically.

Checks for an error object, same as in PEAR (Previous) PEAR::Services_Weather_Common (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.