PHP Class Horde_Ajax_Application_TwitterHandler, horde

Inheritance: extends Horde_Core_Ajax_Application_Handler
Mostrar archivo Open project: horde/horde

Public Methods

Method Description
favorite ( ) : stdClass Favorite a tweet. Expects: - tweetId:
retweet ( ) : string Retweet a tweet. Expects the following in $this->vars: - tweetId: The tweet id to retweet.
twitterUpdate ( ) : array Update the twitter timeline.
unfavorite ( ) Unfavorite a tweet. Expects: - tweetId:
updateStatus ( ) : string Update twitter status. Expects: - inReplyTo: - statusText:

Protected Methods

Method Description
_buildTweet ( stdClass $tweet ) : Horde_View Helper method to build a view object for a tweet.
_doTwitterGetPage ( ) : [type] Helper method for getting a slice of tweets.
_getTwitterObject ( ) : Horde_Service_Twitter
_twitterError ( $e )

Method Details

_buildTweet() protected method

Helper method to build a view object for a tweet.
protected _buildTweet ( stdClass $tweet ) : Horde_View
$tweet stdClass The tweet object.
return Horde_View The view object, populated with tweet data.

_doTwitterGetPage() protected method

Expects the following in $this->vars: - max_id: - since_id: - i: - mentions:
protected _doTwitterGetPage ( ) : [type]
return [type]

_getTwitterObject() protected method

protected _getTwitterObject ( ) : Horde_Service_Twitter
return Horde_Service_Twitter

_twitterError() protected method

protected _twitterError ( $e )

favorite() public method

Favorite a tweet. Expects: - tweetId:
public favorite ( ) : stdClass
return stdClass

retweet() public method

- i:
public retweet ( ) : string
return string The HTML to render the newly retweeted tweet.

twitterUpdate() public method

Update the twitter timeline.
public twitterUpdate ( ) : array
return array An hash containing the following keys: - o: The id of the oldest tweet - n: The id of the newest tweet - c: The HTML content

unfavorite() public method

Unfavorite a tweet. Expects: - tweetId:
public unfavorite ( )

updateStatus() public method

Update twitter status. Expects: - inReplyTo: - statusText:
public updateStatus ( ) : string
return string The HTML text of the new tweet.