Services_Weather::service
Вернуться к: Services_Weather
Services_Weather::service
Synopsis
PEAR_Error|object& Services_Weather::service ( string $service , array $options = null )
Usable keys for the options array are:
-
debug enables debugging output
-
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
-
none
-
none
-
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
-
partnerID You'll receive these keys after registering
-
licenseKey with the weather.com XML-service
Parameter
- string $service
- array $options
Throws
throws PEAR_Error
throws PEAR_Error::SERVICES_WEATHER_ERROR_SERVICE_NOT_FOUND
Note
This function can not be called statically.
Вернуться к: Services_Weather