Property | Type | Description | |
---|---|---|---|
Twitter object (from Simpletweet) |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
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 |
return | string |
public getTwitter ( ) : Twitter | ||
return | Twitter client instance |
public setTwitter ( Twitter $twitter ) : Phergie_Plugin_Twitter | ||
Twitter instance to set | ||
return | Phergie_Plugin_Twitter | Provides a fluent interface |