PHP Class Phergie_Plugin_Wunderground, phergie

Inheritance: extends Phergie_Plugin_Abstract
Show file Open project: phergie/phergie

Public Methods

Method Description
assembleForecastString ( $forecastData, $time = '24' )
getBogusLocation ( ) : boolean
onCommandForecast ( $location )
onCommandWeather ( string $location ) : void Makes call to wunderground's api for conditions at a particular location
onLoad ( ) : void Checks for dependencies
parseForecastInfo ( $response )
parseWeatherInfo ( Phergie_Plugin_Http_Response $response ) : array Chews on reply from wunderground's API and spits out useful information
setBogusLocation ( boolean $bogusLocation ) : Phergie_Plugin_Wunderground

Method Details

assembleForecastString() public method

public assembleForecastString ( $forecastData, $time = '24' )

getBogusLocation() public method

public getBogusLocation ( ) : boolean
return boolean

onCommandForecast() public method

public onCommandForecast ( $location )

onCommandWeather() public method

Makes call to wunderground's api for conditions at a particular location
public onCommandWeather ( string $location ) : void
$location string
return void

onLoad() public method

Checks for dependencies
public onLoad ( ) : void
return void

parseForecastInfo() public method

public parseForecastInfo ( $response )

parseWeatherInfo() public method

Chews on reply from wunderground's API and spits out useful information
public parseWeatherInfo ( Phergie_Plugin_Http_Response $response ) : array
$response Phergie_Plugin_Http_Response
return array Array of useful information

setBogusLocation() public method

public setBogusLocation ( boolean $bogusLocation ) : Phergie_Plugin_Wunderground
$bogusLocation boolean
return Phergie_Plugin_Wunderground