PHP Класс Phergie_Plugin_Weather, phergie

Автор: Phergie Development Team ([email protected])
Наследование: extends Phergie_Plugin_Abstract
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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