You are here

class TwitterStatus in Twitter 7.3

Same name and namespace in other branches
  1. 6.5 twitter.lib.php \TwitterStatus
  2. 6.3 twitter.lib.php \TwitterStatus
  3. 7.6 twitter.module \TwitterStatus
  4. 7.5 twitter.lib.php \TwitterStatus

Class for containing an individual twitter status.

Hierarchy

Expanded class hierarchy of TwitterStatus

File

./twitter.lib.php, line 378
Classes to implement the full Twitter API

View source
class TwitterStatus {

  /**
   * @var created_at
   */
  public $created_at;
  public $id;
  public $text;
  public $source;
  public $truncated;
  public $favorited;
  public $in_reply_to_status_id;
  public $in_reply_to_user_id;
  public $in_reply_to_screen_name;
  public $user;

  /**
   * Constructor for TwitterStatus
   */
  public function __construct($values = array()) {
    $this->created_at = $values['created_at'];
    $this->id = $values['id'];
    $this->text = $values['text'];
    $this->source = $values['source'];
    $this->truncated = $values['truncated'];
    $this->favorited = $values['favorited'];
    $this->in_reply_to_status_id = $values['in_reply_to_status_id'];
    $this->in_reply_to_user_id = $values['in_reply_to_user_id'];
    $this->in_reply_to_screen_name = $values['in_reply_to_screen_name'];
    if (isset($values['user'])) {
      $this->user = new TwitterUser($values['user']);
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TwitterStatus::$created_at public property
TwitterStatus::$favorited public property
TwitterStatus::$id public property
TwitterStatus::$in_reply_to_screen_name public property
TwitterStatus::$in_reply_to_status_id public property
TwitterStatus::$in_reply_to_user_id public property
TwitterStatus::$source public property
TwitterStatus::$text public property
TwitterStatus::$truncated public property
TwitterStatus::$user public property
TwitterStatus::__construct public function Constructor for TwitterStatus