class Country in Smart IP 7.2
Same name in this branch
- 7.2 includes/vendor/geoip2/geoip2/src/Model/Country.php \GeoIp2\Model\Country
- 7.2 includes/vendor/geoip2/geoip2/src/Record/Country.php \GeoIp2\Record\Country
Same name and namespace in other branches
- 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
- class \GeoIp2\Record\AbstractRecord implements \GeoIp2\Compat\JsonSerializable
- class \GeoIp2\Record\AbstractPlaceRecord
- class \GeoIp2\Record\Country
- class \GeoIp2\Record\AbstractPlaceRecord
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().
File
- includes/
vendor/ geoip2/ geoip2/ src/ Record/ Country.php, line 30
Namespace
GeoIp2\RecordView source
class Country extends AbstractPlaceRecord {
/**
* @ignore
*/
protected $validAttributes = array(
'confidence',
'geonameId',
'isoCode',
'names',
);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractPlaceRecord:: |
private | property | ||
AbstractPlaceRecord:: |
private | function | ||
AbstractPlaceRecord:: |
public | function |
@ignore Overrides AbstractRecord:: |
|
AbstractPlaceRecord:: |
public | function |
@ignore Overrides AbstractRecord:: |
|
AbstractRecord:: |
private | property | ||
AbstractRecord:: |
private | function | ||
AbstractRecord:: |
public | function | ||
AbstractRecord:: |
private | function | ||
AbstractRecord:: |
public | function | ||
Country:: |
protected | property | @ignore | 1 |