Documentation

Horde_Ajax_Application_TwitterHandler extends Horde_Core_Ajax_Application_Handler
in package

Defines the AJAX actions used in the Twitter client.

Tags
author

Michael J Rubinsky <mrubinsk.horde.org>

category

Horde

license

http://www.horde.org/licenses/lgpl LGPL-2

Table of Contents

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<string|int, mixed>
Update the twitter timeline.
unfavorite()  : mixed
Unfavorite a tweet. Expects: - tweetId:
updateStatus()  : string
Update twitter status. Expects: - inReplyTo: - statusText:
_buildTweet()  : Horde_View
Helper method to build a view object for a tweet.
_doTwitterGetPage()  : mixed
Helper method for getting a slice of tweets.
_getTwitterObject()  : Horde_Service_Twitter
_twitterError()  : mixed

Methods

favorite()

Favorite a tweet. Expects: - tweetId:

public favorite() : stdClass
Return values
stdClass

retweet()

Retweet a tweet. Expects the following in $this->vars: - tweetId: The tweet id to retweet.

public retweet() : string
  • i:
Return values
string

The HTML to render the newly retweeted tweet.

twitterUpdate()

Update the twitter timeline.

public twitterUpdate() : array<string|int, mixed>
Return values
array<string|int, mixed>

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() : mixed
Return values
mixed

updateStatus()

Update twitter status. Expects: - inReplyTo: - statusText:

public updateStatus() : string
Return values
string

The HTML text of the new tweet.

_buildTweet()

Helper method to build a view object for a tweet.

protected _buildTweet(stdClass $tweet) : Horde_View
Parameters
$tweet : stdClass

The tweet object.

Return values
Horde_View

The view object, populated with tweet data.

_doTwitterGetPage()

Helper method for getting a slice of tweets.

protected _doTwitterGetPage() : mixed

Expects the following in $this->vars:

  • max_id:
  • since_id:
  • i:
  • mentions:
Return values
mixed

_getTwitterObject()

protected _getTwitterObject() : Horde_Service_Twitter
Return values
Horde_Service_Twitter

_twitterError()

protected _twitterError(mixed $e) : mixed
Parameters
$e : mixed
Return values
mixed

Search results