PHP Class Phergie_Plugin_Youtube, phergie

Inheritance: extends Phergie_Plugin_Abstract
Afficher le fichier Open project: phergie/phergie

Méthodes publiques

Méthode Description
onCommandYoutube ( string $query ) : void Returns the first result of a YouTube search.
onLoad ( ) : void Checks for dependencies.
renderUrl ( array $parsed ) : boolean Renders YouTube URLs.

Méthodes protégées

Méthode Description
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.

Method Details

onCommandYoutube() public méthode

Returns the first result of a YouTube search.
public onCommandYoutube ( string $query ) : void
$query string Search query
Résultat void

onLoad() public méthode

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

queryYoutube() protected méthode

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
Résultat object YouTube result object

renderUrl() public méthode

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