PHP 클래스 Phergie_Plugin_Youtube, phergie

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

공개 메소드들

메소드 설명
onCommandYoutube ( string $query ) : void Returns the first result of a YouTube search.
onLoad ( ) : void Checks for dependencies.
renderUrl ( array $parsed ) : boolean Renders YouTube URLs.

보호된 메소드들

메소드 설명
queryYoutube ( string $query ) : object Queries the YouTube video search web service, processes the first result, and sends a message back to the current event source.

메소드 상세

onCommandYoutube() 공개 메소드

Returns the first result of a YouTube search.
public onCommandYoutube ( string $query ) : void
$query string Search query
리턴 void

onLoad() 공개 메소드

Checks for dependencies.
public onLoad ( ) : void
리턴 void

queryYoutube() 보호된 메소드

Queries the YouTube video search web service, processes the first result, and sends a message back to the current event source.
protected queryYoutube ( string $query ) : object
$query string Search term
리턴 object YouTube result object

renderUrl() 공개 메소드

Renders YouTube URLs.
public renderUrl ( array $parsed ) : boolean
$parsed array parse_url() output for the URL to render
리턴 boolean TRUE if the URL was rendered successfully, FALSE otherwise