PHP Класс Phergie_Plugin_Wunderground, phergie

Наследование: extends Phergie_Plugin_Abstract
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

assembleForecastString() публичный Метод

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

getBogusLocation() публичный Метод

public getBogusLocation ( ) : boolean
Результат boolean

onCommandForecast() публичный Метод

public onCommandForecast ( $location )

onCommandWeather() публичный Метод

Makes call to wunderground's api for conditions at a particular location
public onCommandWeather ( string $location ) : void
$location string
Результат void

onLoad() публичный Метод

Checks for dependencies
public onLoad ( ) : void
Результат void

parseForecastInfo() публичный Метод

public parseForecastInfo ( $response )

parseWeatherInfo() публичный Метод

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
Результат array Array of useful information

setBogusLocation() публичный Метод

public setBogusLocation ( boolean $bogusLocation ) : Phergie_Plugin_Wunderground
$bogusLocation boolean
Результат Phergie_Plugin_Wunderground