PHP Class Phergie_Plugin_TheFuckingWeather, phergie

See also: http://thefuckingweather.com
Author: Phergie Development Team ([email protected])
Inheritance: extends Phergie_Plugin_Abstract
Afficher le fichier Open project: phergie/phergie

Protected Properties

Свойство Type Description
$http Phergie_Plugin_Http HTTP plugin
$url string Base API URL

Méthodes publiques

Méthode Description
onCommandTfw ( string $location ) : void Alias for TheFuckingWeather command.
onCommandThefuckingweather ( string $location ) : void Returns the weather from the specified location.
onLoad ( ) : void Checks for dependencies.

Méthodes protégées

Méthode Description
getWeather ( string $location ) : string | boolean Get the necessary content and returns the search result.

Method Details

getWeather() protected méthode

Get the necessary content and returns the search result.
protected getWeather ( string $location ) : string | boolean
$location string Location term
Résultat string | boolean Search result or FALSE if none is found

onCommandTfw() public méthode

Alias for TheFuckingWeather command.
public onCommandTfw ( string $location ) : void
$location string Location term
Résultat void

onCommandThefuckingweather() public méthode

Returns the weather from the specified location.
public onCommandThefuckingweather ( string $location ) : void
$location string Location term
Résultat void

onLoad() public méthode

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

Property Details

$http protected_oe property

HTTP plugin
protected Phergie_Plugin_Http $http
Résultat Phergie_Plugin_Http

$url protected_oe property

Base API URL
protected string $url
Résultat string