You are here

class InstagramLocation in Instagram Block 7

InstagramLocation class.

Hierarchy

Expanded class hierarchy of InstagramLocation

File

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

View source
class InstagramLocation {

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

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

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

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

  /**
   * Constructor for the InstagramLocation class.
   */
  public function __construct($location) {
    if (isset($this->id)) {
      $this->id = $location->id;
    }
    if (isset($this->name)) {
      $this->name = $location->name;
    }
    if (isset($location->latitude)) {
      $this->latitude = $location->latitude;
    }
    if (isset($location->longitude)) {
      $this->longitude = $location->longitude;
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
InstagramLocation::$id protected property
InstagramLocation::$latitude public property
InstagramLocation::$longitude public property
InstagramLocation::$name public property
InstagramLocation::__construct public function Constructor for the InstagramLocation class.