PHP Класс Horde_Ajax_Application_TwitterHandler, horde

Наследование: extends Horde_Core_Ajax_Application_Handler
Показать файл Открыть проект

Открытые методы

Метод Описание
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:

Защищенные методы

Метод Описание
_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 )

Описание методов

_buildTweet() защищенный Метод

Helper method to build a view object for a tweet.
protected _buildTweet ( stdClass $tweet ) : Horde_View
$tweet stdClass The tweet object.
Результат Horde_View The view object, populated with tweet data.

_doTwitterGetPage() защищенный Метод

Expects the following in $this->vars: - max_id: - since_id: - i: - mentions:
protected _doTwitterGetPage ( ) : [type]
Результат [type]

_getTwitterObject() защищенный Метод

protected _getTwitterObject ( ) : Horde_Service_Twitter
Результат Horde_Service_Twitter

_twitterError() защищенный Метод

protected _twitterError ( $e )

favorite() публичный Метод

Favorite a tweet. Expects: - tweetId:
public favorite ( ) : stdClass
Результат stdClass

retweet() публичный Метод

- i:
public retweet ( ) : string
Результат string The HTML to render the newly retweeted tweet.

twitterUpdate() публичный Метод

Update the twitter timeline.
public twitterUpdate ( ) : array
Результат 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() публичный Метод

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

updateStatus() публичный Метод

Update twitter status. Expects: - inReplyTo: - statusText:
public updateStatus ( ) : string
Результат string The HTML text of the new tweet.