You are here

public function GeoIpHandlerV2::rawRecord in GeoIP API 7.2

Returns an array of all information related the ip.

!Attention! The array isn't unified in any way. The return will change depending on which DB type / version is used.

Parameters

string $ip: The ip to resolve.

Return value

array Country code or FALSE on failure.

Overrides GeoIpHandlerInterface::rawRecord

File

src/GeoIpHandlerV2.php, line 95
The GeoIP API handler for version 2.

Class

GeoIpHandlerV2

Namespace

Drupal\geoip

Code

public function rawRecord($ip = NULL) {
  return $this
    ->record($ip)->raw;
}