PHP Class Phergie_Plugin_Wunderground, phergie

Inheritance: extends Phergie_Plugin_Abstract
Afficher le fichier Open project: phergie/phergie

Méthodes publiques

Méthode 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 méthode

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

getBogusLocation() public méthode

public getBogusLocation ( ) : boolean
Résultat boolean

onCommandForecast() public méthode

public onCommandForecast ( $location )

onCommandWeather() public méthode

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

onLoad() public méthode

Checks for dependencies
public onLoad ( ) : void
Résultat void

parseForecastInfo() public méthode

public parseForecastInfo ( $response )

parseWeatherInfo() public méthode

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
Résultat array Array of useful information

setBogusLocation() public méthode

public setBogusLocation ( boolean $bogusLocation ) : Phergie_Plugin_Wunderground
$bogusLocation boolean
Résultat Phergie_Plugin_Wunderground