Class YahooWeather

Description

Yahoo! Weather data provider

Values in params:
dateFormat (string) => Date format for days; Used by CDateFormatter::format(), see Date Format Patterns for a description of formats. Default: "EEE d' 'MMM yyyy"
location (string) => Location.
To find the location id follow the instructions on the Yahoo Developer Weather RSS page.
units (string) => Units to provide the forecast in. "C"|"F" C=metric (default), F=imperial

Located in /providers/YahooWeather.php (line 35)

WFBaseProvider
   |
   --WFXMLProvider
      |
      --YahooWeather
Method Summary
WFWeatherForecast getForecast ( $params,  $symbols)
string parsePressureTrend (DOMNode $contextNode)
Methods
getForecast (line 117)

Fetches the forecast from the provider's datasource

Required by IWeatherForecastProvider interface

  • return: Forecast object
WFWeatherForecast getForecast ( $params,  $symbols)
  • $params
  • $symbols
parsePressureTrend (line 182)

Parses the pressure trend into words

  • return: The pressure trend
string parsePressureTrend (DOMNode $contextNode)
  • DOMNode $contextNode: The node from with to start XPath evaluation

Inherited Methods

Inherited From WFXMLProvider

WFXMLProvider::getXPath()
WFXMLProvider::read()
WFXMLProvider::__get()

Inherited From WFBaseProvider

WFBaseProvider::c2f()
WFBaseProvider::f2c()
WFBaseProvider::init()
WFBaseProvider::mph2kph()

Documentation generated on Tue, 13 Oct 2009 14:44:52 +0100 by phpDocumentor 1.4.2