class City in Smart IP 7.2
Same name in this branch
- 7.2 includes/vendor/geoip2/geoip2/src/Model/City.php \GeoIp2\Model\City
- 7.2 includes/vendor/geoip2/geoip2/src/Record/City.php \GeoIp2\Record\City
Same name and namespace in other branches
- 6.2 includes/vendor/geoip2/geoip2/src/Record/City.php \GeoIp2\Record\City
City-level data associated with an IP address.
This record is returned by all location services and databases besides Country.
@property int|null $confidence A value from 0-100 indicating MaxMind's confidence that the city 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 city. This attribute is returned by all location services and databases.
@property string|null $name The name of the city based on the locales list passed to the constructor. This attribute is returned by all location services and databases.
@property array|null $names A 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\City
- class \GeoIp2\Record\AbstractPlaceRecord
Expanded class hierarchy of City
7 string references to 'City'
- Client::city in includes/
vendor/ geoip2/ geoip2/ src/ WebService/ Client.php - This method calls the GeoIP2 Precision: City service.
- Reader::city in includes/
vendor/ geoip2/ geoip2/ src/ Database/ Reader.php - This method returns a GeoIP2 City 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_get_bin_source_filename in ./
smart_ip.module - Helper function for grabbing MaxMind GeoIP Legacy's binary archive filename.
File
- includes/
vendor/ geoip2/ geoip2/ src/ Record/ City.php, line 26
Namespace
GeoIp2\RecordView source
class City extends AbstractPlaceRecord {
/**
* @ignore
*/
protected $validAttributes = array(
'confidence',
'geonameId',
'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 | ||
City:: |
protected | property | @ignore |