PHP 클래스 Phergie_Plugin_Weather, phergie

상속: extends Phergie_Plugin_Abstract
파일 보기 프로젝트 열기: phergie/phergie

보호된 프로퍼티들

프로퍼티 타입 설명
$isLocationReliable boolean True if the last fetched location was reliable

공개 메소드들

메소드 설명
getWeatherData ( string $location ) : array Retrieve TWCi Content
getWeatherLocation ( string $location ) : string | boolean Tries to find the api-readable id of the given location returns the location if found, false if not found
onCommandWeather ( string $location ) : void Returns a weather report for a specified location.
onLoad ( ) : void Checks for dependencies.

보호된 메소드들

메소드 설명
getWeatherReport ( string $location ) : void Generates a weather report for a specified location

메소드 상세

getWeatherData() 공개 메소드

Retrieve TWCi Content
public getWeatherData ( string $location ) : array
$location string place to retrieve weather data for
리턴 array weather conditions

getWeatherLocation() 공개 메소드

It also sets $this->isReliable, which is set to false when the current location isn't verfied yet
public getWeatherLocation ( string $location ) : string | boolean
$location string Location to search
리턴 string | boolean

getWeatherReport() 보호된 메소드

@param string $location name of place to retrieve weather report for
protected getWeatherReport ( string $location ) : void
$location string
리턴 void

onCommandWeather() 공개 메소드

Returns a weather report for a specified location.
public onCommandWeather ( string $location ) : void
$location string Zip code or city/state/country specification
리턴 void

onLoad() 공개 메소드

Checks for dependencies.
public onLoad ( ) : void
리턴 void

프로퍼티 상세

$isLocationReliable 보호되어 있는 프로퍼티

True if the last fetched location was reliable
protected bool $isLocationReliable
리턴 boolean