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
--- weather.com Options
partnerID You'll receive these keys after registering
licenseKey with the weather.com XML-service
$service
$options
throws PEAR_Error
throws PEAR_Error::SERVICES_WEATHER_ERROR_SERVICE_NOT_FOUND
This function can not be called statically.