PHP Class Phergie_Plugin_TheFuckingWeather, phergie

See also: http://thefuckingweather.com
Author: Phergie Development Team ([email protected])
Inheritance: extends Phergie_Plugin_Abstract
显示文件 Open project: phergie/phergie

Protected Properties

Property Type Description
$http Phergie_Plugin_Http HTTP plugin
$url string Base API URL

Public Methods

Method 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.

Protected Methods

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

Method Details

getWeather() protected method

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

onCommandTfw() public method

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

onCommandThefuckingweather() public method

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

onLoad() public method

Checks for dependencies.
public onLoad ( ) : void
return void

Property Details

$http protected_oe property

HTTP plugin
protected Phergie_Plugin_Http $http
return Phergie_Plugin_Http

$url protected_oe property

Base API URL
protected string $url
return string