You are here

class Country in Smart IP 7.2

Same name in this branch
  1. 7.2 includes/vendor/geoip2/geoip2/src/Model/Country.php \GeoIp2\Model\Country
  2. 7.2 includes/vendor/geoip2/geoip2/src/Record/Country.php \GeoIp2\Record\Country
Same name and namespace in other branches
  1. 6.2 includes/vendor/geoip2/geoip2/src/Record/Country.php \GeoIp2\Record\Country

Contains data for the country record associated with an IP address

This record is returned by all location services and databases.

@property int|null $confidence A value from 0-100 indicating MaxMind's confidence that the country is correct. This attribute is only available from the Insights service and the GeoIP2 Enterprise database.

@property int|null $geonameId The GeoName ID for the country. This attribute is returned by location services and databases.

@property string|null $isoCode The {@link http://en.wikipedia.org/wiki/ISO_3166-1 two-character ISO 3166-1 alpha code} for the country. This attribute is returned by all location services and databases.

@property string|null $name The name of the country based on the locales list passed to the constructor. This attribute is returned by all location services and databases.

@property array|null $names An array map where the keys are locale codes and the values are names. This attribute is returned by all location services and databases.

Hierarchy

Expanded class hierarchy of Country

6 string references to 'Country'
Client::country in includes/vendor/geoip2/geoip2/src/WebService/Client.php
This method calls the GeoIP2 Precision: Country service.
Reader::country in includes/vendor/geoip2/geoip2/src/Database/Reader.php
This method returns a GeoIP2 Country model.
SmartIPViewsBridgeTestHelper::setUp in modules/smart_ip_views_bridge/tests/smart_ip_views_bridge.test
Sets up a Drupal site for running functional and integration tests.
smart_ip_admin_settings in includes/smart_ip.admin.inc
Smart IP administration settings.
smart_ip_rules_condition_info in ./smart_ip.rules.inc
Implements hook_rules_condition_info().

... See full list

File

includes/vendor/geoip2/geoip2/src/Record/Country.php, line 30

Namespace

GeoIp2\Record
View source
class Country extends AbstractPlaceRecord {

  /**
   * @ignore
   */
  protected $validAttributes = array(
    'confidence',
    'geonameId',
    'isoCode',
    'names',
  );

}

Members