class InstagramUser in Instagram Block 7
InstagramUser class.
Hierarchy
- class \InstagramUser
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InstagramUser:: |
public | property | ||
InstagramUser:: |
public | property | ||
InstagramUser:: |
protected | property | ||
InstagramUser:: |
public | property | URL to the image src. | |
InstagramUser:: |
public | property | ||
InstagramUser:: |
public | property | ||
InstagramUser:: |
public | function | Constructor for the InstagramUser class. |