PHP Класс Phergie_Plugin_TheFuckingWeather, phergie

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

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

Свойство Тип Описание
$http Phergie_Plugin_Http HTTP plugin
$url string Base API URL

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

Метод Описание
onCommandTfw ( string $location ) : void Alias for TheFuckingWeather command.
onCommandThefuckingweather ( string $location ) : void Returns the weather from the specified location.
onLoad ( ) : void Checks for dependencies.

Защищенные методы

Метод Описание
getWeather ( string $location ) : string | boolean Get the necessary content and returns the search result.

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

getWeather() защищенный Метод

Get the necessary content and returns the search result.
protected getWeather ( string $location ) : string | boolean
$location string Location term
Результат string | boolean Search result or FALSE if none is found

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

Alias for TheFuckingWeather command.
public onCommandTfw ( string $location ) : void
$location string Location term
Результат void

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

Returns the weather from the specified location.
public onCommandThefuckingweather ( string $location ) : void
$location string Location term
Результат void

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

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

Описание свойств

$http защищенное свойство

HTTP plugin
protected Phergie_Plugin_Http $http
Результат Phergie_Plugin_Http

$url защищенное свойство

Base API URL
protected string $url
Результат string