You are here

class AnonymousIp in Smart IP 7.2

Same name and namespace in other branches
  1. 6.2 includes/vendor/geoip2/geoip2/src/Model/AnonymousIp.php \GeoIp2\Model\AnonymousIp

This class provides the GeoIP2 Anonymous IP model.

@property boolean $isAnonymous This is true if the IP address belongs to any sort of anonymous network.

@property boolean $isAnonymousVpn This is true if the IP address belongs to an anonymous VPN system.

@property boolean $isHostingProvider This is true if the IP address belongs to a hosting provider.

@property boolean $isPublicProxy This is true if the IP address belongs to a public proxy.

@property boolean $isTorExitNode This is true if the IP address is a Tor exit node.

@property string $ipAddress The IP address that the data in the model is for.

Hierarchy

Expanded class hierarchy of AnonymousIp

1 string reference to 'AnonymousIp'
Reader::anonymousIp in includes/vendor/geoip2/geoip2/src/Database/Reader.php
This method returns a GeoIP2 Anonymous IP model.

File

includes/vendor/geoip2/geoip2/src/Model/AnonymousIp.php, line 27

Namespace

GeoIp2\Model
View source
class AnonymousIp extends AbstractModel {
  protected $isAnonymous;
  protected $isAnonymousVpn;
  protected $isHostingProvider;
  protected $isPublicProxy;
  protected $isTorExitNode;
  protected $ipAddress;

  /**
   * @ignore
   */
  public function __construct($raw) {
    parent::__construct($raw);
    $this->isAnonymous = $this
      ->get('is_anonymous');
    $this->isAnonymousVpn = $this
      ->get('is_anonymous_vpn');
    $this->isHostingProvider = $this
      ->get('is_hosting_provider');
    $this->isPublicProxy = $this
      ->get('is_public_proxy');
    $this->isTorExitNode = $this
      ->get('is_tor_exit_node');
    $this->ipAddress = $this
      ->get('ip_address');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AbstractModel::$raw protected property
AbstractModel::get protected function @ignore
AbstractModel::jsonSerialize public function
AbstractModel::__get public function @ignore 1
AbstractModel::__isset public function @ignore
AnonymousIp::$ipAddress protected property
AnonymousIp::$isAnonymous protected property
AnonymousIp::$isAnonymousVpn protected property
AnonymousIp::$isHostingProvider protected property
AnonymousIp::$isPublicProxy protected property
AnonymousIp::$isTorExitNode protected property
AnonymousIp::__construct public function @ignore Overrides AbstractModel::__construct