PHP 클래스 Phergie_Plugin_Google, phergie

저자: Phergie Development Team ([email protected])
상속: extends Phergie_Plugin_Abstract
파일 보기 프로젝트 열기: phergie/phergie

공개 메소드들

메소드 설명
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