You are here

class InstagramUser in Instagram Block 7

InstagramUser class.

Hierarchy

Expanded class hierarchy of InstagramUser

File

./instagram_block.lib.php, line 284
Instagram classes to integrate with the Instagram API.

View source
class InstagramUser {

  /**
   * @var string $id.
   */
  protected $id;

  /**
   * @var string $username.
   */
  public $username;

  /**
   * @var string $website.
   */
  public $website;

  /**
   * @var string $full_name.
   */
  public $full_name;

  /**
   * @var string $bio.
   */
  public $bio;

  /**
   * @var string $profile_picture
   *   URL to the image src.
   */
  public $profile_picture;

  /**
   * Constructor for the InstagramUser class.
   */
  public function __construct($user) {
    $this->profile_picture = $user->profile_picture;
    $this->id = $user->id;
    $this->full_name = $user->full_name;
    $this->username = $user->username;
    if (!empty($user->website)) {
      $this->website = $user->website;
    }
    if (!empty($user->bio)) {
      $this->bio = $user->bio;
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
InstagramUser::$bio public property
InstagramUser::$full_name public property
InstagramUser::$id protected property
InstagramUser::$profile_picture public property URL to the image src.
InstagramUser::$username public property
InstagramUser::$website public property
InstagramUser::__construct public function Constructor for the InstagramUser class.