Class BBCWeather

Description

BBC 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 use the search on the above page. The id is the number immediately after "http://news.bbc.co.uk/weather/"
units (string) => Units to provide the forecast in. "C"|"F" C=metric (default), F=imperial

Located in /providers/BBCWeather.php (line 36)

WFBaseProvider
   |
   --WFXMLProvider
      |
      --BBCWeather
Method Summary
array getDetails (DOMNode $contextNode)
WFWeatherForecast getForecast ( $params,  $symbols)
Methods
getDetails (line 172)

Extracts the details from the title and description nodes of the context node

  • return: The forecast details
array getDetails (DOMNode $contextNode)
  • DOMNode $contextNode: The node from with to start XPath evaluation
getForecast (line 90)

Fetches the forecast from the provider's datasource

Required by IWeatherForecastProvider interface

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

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:43 +0100 by phpDocumentor 1.4.2