PHP Класс Phergie_Plugin_Google, phergie

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

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

Метод Описание
onCommandConvert ( string $query ) : void Performs a Google search to convert a value from one unit to another.
onCommandDefine ( string $query ) : void Returns the first definition of a Google Dictionary search.
onCommandG ( string $query ) : void Returns the first result of a Google search.
onCommandGc ( string $query ) : void Performs a Google Count search for the given term.
onCommandGconvert ( string $value, string $from, string $to ) : void Perform a Google Convert query to convert a value from one metric to another.
onCommandGmap ( string $location ) : void Performs a Google Maps search for the given term.
onCommandGt ( string $from, string $to, string $query ) : void Performs a Google Translate search for the given term.
onCommandGw ( string $location, integer $offset = null ) : void Performs a Google Weather search for the given term.
onLoad ( ) : void Checks for dependencies.

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

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

Performs a Google search to convert a value from one unit to another.
public onCommandConvert ( string $query ) : void
$query string Query of the form "[quantity] [unit] to [unit2]"
Результат void

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

Returns the first definition of a Google Dictionary search.
public onCommandDefine ( string $query ) : void
$query string Word to get the definition
Результат void

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

Returns the first result of a Google search.
public onCommandG ( string $query ) : void
$query string Search term
Результат void

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

Performs a Google Count search for the given term.
public onCommandGc ( string $query ) : void
$query string Search term
Результат void

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

Perform a Google Convert query to convert a value from one metric to another.
public onCommandGconvert ( string $value, string $from, string $to ) : void
$value string Value to convert
$from string Source metric
$to string Destination metric
Результат void

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

Performs a Google Maps search for the given term.
public onCommandGmap ( string $location ) : void
$location string Location to search for
Результат void

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

Performs a Google Translate search for the given term.
public onCommandGt ( string $from, string $to, string $query ) : void
$from string Language of the search term
$to string Language to which the search term should be translated
$query string Term to translate
Результат void

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

Performs a Google Weather search for the given term.
public onCommandGw ( string $location, integer $offset = null ) : void
$location string Location to search for
$offset integer Optional day offset from the current date between 0 and 3 to get the forecast
Результат void

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

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