Свойство | Тип | Описание | |
---|---|---|---|
Twitter object (from Simpletweet) |
Метод | Описание | |
---|---|---|
getTwitter ( ) : Twitter | Returns the Twitter client instance in use. | |
onCommandTweet ( $tweet = null ) | ||
onCommandTwitter ( string $tweeter, integer $num = 1 ) : void | Fetches the associated tweet and relays it to the channel. | |
onConnect ( ) : void | Register with the URL plugin, if possible | |
onLoad ( ) : void | Initialize (set up configuration vars) | |
renderUrl ( array $parsed ) : boolean | Renders Twitter URLs. | |
setTwitter ( Twitter $twitter ) : Phergie_Plugin_Twitter | Sets the Twitter client instance to use. |
Метод | Описание | |
---|---|---|
formatTweet ( StdClass $tweet, boolean $includeUrl = true ) : string | Formats a Tweet into a message suitable for output. |
protected formatTweet ( StdClass $tweet, boolean $includeUrl = true ) : string | ||
$tweet | StdClass | JSON-decoded tweet object from Twitter |
$includeUrl | boolean | whether or not to include the URL in the formatted output |
Результат | string |
public getTwitter ( ) : Twitter | ||
Результат | Twitter client instance |
public setTwitter ( Twitter $twitter ) : Phergie_Plugin_Twitter | ||
Twitter instance to set | ||
Результат | Phergie_Plugin_Twitter | Provides a fluent interface |