You are here

public function GeoIpHandlerV2::setDbFile in GeoIP API 7.2

Set the db file to use.

Parameters

string $db_file: Path to the db file.

Overrides GeoIpHandlerInterface::setDbFile

File

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

Class

GeoIpHandlerV2

Namespace

Drupal\geoip

Code

public function setDbFile($db_file) {
  $this->dbFile = $db_file;

  // Unset reader to ensure the new file is taken in account.
  $this->reader = NULL;
}