Overview

Namespaces

  • GeoIp2
    • Database
    • Exception
    • Model
    • Record
    • WebService
  • PHP

Classes

  • AnonymousIp
  • City
  • ConnectionType
  • Country
  • Domain
  • Insights
  • Isp
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: namespace GeoIp2\Model;
 4: 
 5: /**
 6:  * This class provides the GeoIP2 Anonymous IP model.
 7:  *
 8:  * @property boolean $isAnonymous This is true if the IP address belongs to
 9:  *     any sort of anonymous network.
10:  *
11:  * @property boolean $isAnonymousVpn This is true if the IP address belongs to
12:  *     an anonymous VPN system.
13:  *
14:  * @property boolean $isHostingProvider This is true if the IP address belongs
15:  *     to a hosting provider.
16:  *
17:  * @property boolean $isPublicProxy This is true if the IP address belongs to
18:  *     a public proxy.
19:  *
20:  * @property boolean $isTorExitNode This is true if the IP address is a Tor
21:  *     exit node.
22:  *
23:  * @property string $ipAddress The IP address that the data in the model is
24:  *     for.
25:  *
26:  */
27: class AnonymousIp extends AbstractModel
28: {
29:     protected $isAnonymous;
30:     protected $isAnonymousVpn;
31:     protected $isHostingProvider;
32:     protected $isPublicProxy;
33:     protected $isTorExitNode;
34:     protected $ipAddress;
35: 
36:     /**
37:      * @ignore
38:      */
39:     public function __construct($raw)
40:     {
41:         parent::__construct($raw);
42: 
43:         $this->isAnonymous = $this->get('is_anonymous');
44:         $this->isAnonymousVpn = $this->get('is_anonymous_vpn');
45:         $this->isHostingProvider = $this->get('is_hosting_provider');
46:         $this->isPublicProxy = $this->get('is_public_proxy');
47:         $this->isTorExitNode = $this->get('is_tor_exit_node');
48:         $this->ipAddress = $this->get('ip_address');
49:     }
50: }
51: 
GeoIP2 PHP API v2.1.1 API documentation generated by ApiGen