PHP Class Horde_Ajax_Application_TwitterHandler, horde

Inheritance: extends Horde_Core_Ajax_Application_Handler
Afficher le fichier Open project: horde/horde

Méthodes publiques

Méthode 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:

Méthodes protégées

Méthode 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 méthode

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

_doTwitterGetPage() protected méthode

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

_getTwitterObject() protected méthode

protected _getTwitterObject ( ) : Horde_Service_Twitter
Résultat Horde_Service_Twitter

_twitterError() protected méthode

protected _twitterError ( $e )

favorite() public méthode

Favorite a tweet. Expects: - tweetId:
public favorite ( ) : stdClass
Résultat stdClass

retweet() public méthode

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

twitterUpdate() public méthode

Update the twitter timeline.
public twitterUpdate ( ) : array
Résultat 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 méthode

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

updateStatus() public méthode

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